diff --git a/ennstatus/cli/commands/stats.py b/ennstatus/cli/commands/stats.py --- a/ennstatus/cli/commands/stats.py +++ b/ennstatus/cli/commands/stats.py @@ -35,7 +35,7 @@ def count(obj, by_type): app = create_app() with app.app_context(): - app.logger.removeHandler(app.logger.handlers[1]) + app.logger.disabled = True servers = split_all_servers_to_types() if not by_type: @@ -66,7 +66,7 @@ def countries(obj, by_type): app = create_app() with app.app_context(): - app.logger.removeHandler(app.logger.handlers[1]) + app.logger.disabled = True servers = split_all_servers_to_types() if not by_type: