1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-21 03:17:49 +03:00

added some debug logging

This commit is contained in:
A_D 2020-07-23 16:47:29 +02:00
parent 72498b3bbc
commit 34760683e5
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -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: