Make log settings not cache local only config

After startup the cached config would be without remote config. This
makes sure the config without remote isn't cached.
pull/3033/head
Åke Forslund 2021-11-09 21:04:58 +01:00
parent 5ff2cb099f
commit 70df575d43
1 changed files with 2 additions and 1 deletions

View File

@ -86,7 +86,8 @@ class LOG:
cls.handler = logging.StreamHandler(sys.stdout)
cls.handler.setFormatter(formatter)
config = mycroft.configuration.Configuration.get(remote=False)
config = mycroft.configuration.Configuration.get(cache=False,
remote=False)
if config.get('log_format'):
formatter = logging.Formatter(config.get('log_format'), style='{')
cls.handler.setFormatter(formatter)