fixed up logging
This commit is contained in:
@@ -38,6 +38,7 @@ def base_config() -> AppDaemonConfig:
|
||||
time_zone='America/Chicago',
|
||||
config_dir=CONFIG_DIR,
|
||||
config_file='appdaemon.yaml',
|
||||
module_debug={'_app_management': 'DEBUG'}
|
||||
)
|
||||
|
||||
|
||||
@@ -46,7 +47,12 @@ def ad(base_config: AppDaemonConfig):
|
||||
loop = asyncio.new_event_loop()
|
||||
|
||||
ad = AppDaemon(Logging(), loop, base_config)
|
||||
logging.getLogger('AppDaemon').propagate = True
|
||||
|
||||
for cfg in ad.logging.config.values():
|
||||
logger = logging.getLogger(cfg['name'])
|
||||
logger.propagate = True
|
||||
logger.setLevel('DEBUG')
|
||||
|
||||
yield ad
|
||||
ad.stop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user