Use logging.warn() instead of print() for the auth warning

This commit is contained in:
flan 2017-11-01 19:56:38 +01:00
parent 17331136ca
commit 6e84242cc5

View File

@ -368,7 +368,7 @@ class SyncApp(object):
if config.has_option("sync_app", "auth_db_path"): if config.has_option("sync_app", "auth_db_path"):
self.user_manager = SqliteUserManager(config.get("sync_app", "auth_db_path")) self.user_manager = SqliteUserManager(config.get("sync_app", "auth_db_path"))
else: 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.user_manager = SimpleUserManager()
self.collection_manager = getCollectionManager() self.collection_manager = getCollectionManager()