From 34760683e58fd33e15a319060b30ed5666372fd3 Mon Sep 17 00:00:00 2001 From: A_D Date: Thu, 23 Jul 2020 16:47:29 +0200 Subject: [PATCH] added some debug logging --- plugins/inara.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/inara.py b/plugins/inara.py index 7cf0919e..4242dcdf 100644 --- a/plugins/inara.py +++ b/plugins/inara.py @@ -861,6 +861,7 @@ def add_event(name, timestamp, data): def call_timer(wait=FLOOD_LIMIT_SECONDS): while this.timer_run: time.sleep(wait) + print("INARA: TICK") if this.timer_run: # check again in here just in case we're closing and the stars align call() @@ -873,7 +874,7 @@ def call(callback=None, force=False): return this.last_update_time = time.time() - + print(f"INARA: {time.asctime()}sending {len(this.events)} entries to inara (call)") data = OrderedDict([ ('header', OrderedDict([ ('appName', applongname), @@ -896,6 +897,8 @@ def worker(): else: (url, data, callback) = item + print(f"INARA: {time.asctime()}sending {len(data['events'])} entries to inara (worker)") + retrying = 0 while retrying < 3: try: