From 6e84242cc557d27111216654072f900247d8cb6d Mon Sep 17 00:00:00 2001 From: flan Date: Wed, 1 Nov 2017 19:56:38 +0100 Subject: [PATCH] Use logging.warn() instead of print() for the auth warning --- ankisyncd/sync_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ankisyncd/sync_app.py b/ankisyncd/sync_app.py index f24e92d..8d21f51 100644 --- a/ankisyncd/sync_app.py +++ b/ankisyncd/sync_app.py @@ -368,7 +368,7 @@ class SyncApp(object): if config.has_option("sync_app", "auth_db_path"): self.user_manager = SqliteUserManager(config.get("sync_app", "auth_db_path")) else: - print("WARNING: auth_db_path not set, ankisyncd will accept any password") + logging.warn("auth_db_path not set, ankisyncd will accept any password") self.user_manager = SimpleUserManager() self.collection_manager = getCollectionManager()