mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Better logging
This commit is contained in:
parent
c676e0a5bf
commit
6ca18b4471
@ -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}")
|
||||
|
Loading…
Reference in New Issue
Block a user