Support old and new style debug config key
MODIFY
plextraktsync/config.default.json
plextraktsync/config.default.json
{
- "log_debug_messages": false,
"logging": {
"debug": false,
"filename": "plextraktsync.log",

MODIFY
plextraktsync/logging.py
plextraktsync/logging.py
def initialize():
CONFIG = factory.config()
# global log level for all messages
- log_level = logging.DEBUG if CONFIG['log_debug_messages'] else logging.INFO
+ if ("log_debug_messages" in CONFIG and CONFIG["log_debug_messages"]) or CONFIG["logging"]["debug"]:
+ log_level = logging.DEBUG
+ else:
+ log_level = logging.INFO
log_file = CONFIG["logging"]["filename"]
log_format = '%(asctime)s %(levelname)s:%(message)s'

Support old and new style debug config key