dsnopek/anki-sync-server

Logs the entire uploaded database at INFO level

pmahoney opened this issue · 0 comments

I ran the server and sync'd with Anki. I saw this in the logs:

INFO:root:CollectionThread[.../collections/anki/collection.anki2]:
Running operation_upload(*['SQLite format... (the entire contents of my deck, in sqlite3 format)

I happened to be running in an Emacs terminal at the time, which is very slow to print output, and the sync operation timed-out. I set the log level to ERROR, and everything seemed to work OK.

But, I don't ever want the entire contents of my uploaded decks to appear in log output. Can this log line be modified to not include the entire contents, or at least bump to DEBUG level?

See https://github.com/dsnopek/anki-sync-server/blob/2.0.6/AnkiServer/threading.py#L91