From 73d71677c8b1bd40a2d8380f1c15951419c13cb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 12 Jan 2022 21:57:01 +0200 Subject: [PATCH] Force logging.basicConfig to logging to work in pytest --- plextraktsync/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plextraktsync/logging.py b/plextraktsync/logging.py index f39c25b820..819da4629d 100644 --- a/plextraktsync/logging.py +++ b/plextraktsync/logging.py @@ -26,7 +26,7 @@ def initialize(config): file_handler, console_handler, ] - logging.basicConfig(handlers=handlers, level=log_level) + logging.basicConfig(handlers=handlers, level=log_level, force=True) # Set debug for other components as well if log_level == logging.DEBUG: