{% extends "markettracker/base.html" %} {% load humanize %} {% block title %}Diagnostics{% endblock %} {% block content %}

MarketTracker Diagnostics

Window: last 48h (since {{ since|date:"Y-m-d H:i:s" }}) · last 24h (since {{ since_24h|date:"Y-m-d H:i:s" }})
Last log
{{ stats.last_log_time|default:"—" }}
Copy / Share
Use “Copy …” buttons below
Tracked contracts
{{ stats.tracked_contracts }}
Contract snapshots
{{ stats.snapshots }}
ERROR (24h)
{{ stats.errors_24h }}
items 403 (24h)
{{ stats.items_403_24h }}
suspicious all-zero (24h)
{{ stats.suspicious_24h }}
Event counts (24h)
{% for row in event_counts_24h %} {% empty %} {% endfor %}
Source Event Count
{{ row.source }} {{ row.event }} {{ row.cnt }}
No events in last 24h.
Errors (last 48h)
{% for l in errors %} {% empty %} {% endfor %}
Time Lvl Source Event Message Data
{{ l.created|date:"Y-m-d H:i:s" }} {{ l.level }} {{ l.source }} {{ l.event }} {{ l.message|default:"" }} {% if l.data %}
show
{{ l.data|pprint }}
{% else %} {% endif %}
No errors in this window.
Worker logs (key events)
{% for l in last_runs %} {% empty %} {% endfor %}
Time Lvl Source Event Message Data
{{ l.created|date:"Y-m-d H:i:s" }} {% if l.level == "ERROR" %} {{ l.level }} {% elif l.level == "WARN" %} {{ l.level }} {% else %} {{ l.level }} {% endif %} {{ l.source }} {{ l.event }} {{ l.message|default:"" }} {% if l.data %}
show
{{ l.data|pprint }}
{% else %} {% endif %}
No key events in this window.
DB dump: TrackedContract (first 200)
{% for tc in tracked_contracts %} {% empty %} {% endfor %}
Title filter / Fitting Mode Desired Last status Max price Active
{% if tc.fitting %}{{ tc.fitting }}{% else %}{{ tc.title_filter }}{% endif %} {% if tc.fitting and tc.title_filter %}
title_filter: {{ tc.title_filter }}
{% endif %}
{{ tc.mode|default:"—" }} {{ tc.desired_quantity|default:"—" }} {% if tc.last_status == "RED" %} {{ tc.last_status }} {% elif tc.last_status == "YELLOW" %} {{ tc.last_status }} {% elif tc.last_status == "OK" %} {{ tc.last_status }} {% else %} {{ tc.last_status|default:"—" }} {% endif %} {{ tc.max_price|default:"—" }} {% if tc.is_active %} yes {% else %} no {% endif %}
No TrackedContract rows.
DB dump: ContractSnapshot (latest 200)
{% for s in snapshots %} {% empty %} {% endfor %}
Contract ID Owner char Status Issued Title Items?
{{ s.contract_id }} {{ s.owner_character_id|default:"—" }} {{ s.status|default:"—" }} {{ s.date_issued|date:"Y-m-d H:i:s" }} {{ s.title|default:"" }} {% if s.items %} yes {% else %} no {% endif %}
No ContractSnapshot rows.
Full log stream (last 500)
{% for l in logs %} {% empty %} {% endfor %}
Time Lvl Source Event Message Data
{{ l.created|date:"Y-m-d H:i:s" }} {% if l.level == "ERROR" %} {{ l.level }} {% elif l.level == "WARN" %} {{ l.level }} {% else %} {{ l.level }} {% endif %} {{ l.source }} {{ l.event }} {{ l.message|default:"" }} {% if l.data %}
show
{{ l.data|pprint }}
{% else %} {% endif %}
No logs in this window.
{% endblock %}