1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Better logging

This commit is contained in:
krateng 2022-04-06 22:25:23 +02:00
parent c676e0a5bf
commit 6ca18b4471

View File

@ -89,7 +89,7 @@ coa = CollectorAgent()
def incoming_scrobble(rawscrobble,fix=True,client=None,api=None,dbconn=None):
if (not "track_artists" in rawscrobble) or (len(rawscrobble['track_artists']) == 0) or (not "track_title" in rawscrobble):
log(f"Incoming scrobble {rawscrobble} [Source: {client}] is not valid")
log(f"Invalid Scrobble [Client: {client} | API: {api}]: {rawscrobble} ",color='red')
return {"status":"failure"}
log(f"Incoming scrobble [Client: {client} | API: {api}]: {rawscrobble}")