Correctly logging intermediate and final configuration

This commit is contained in:
nicobo 2021-03-18 13:04:25 +01:00
parent 56f740d913
commit e8896026fe
No known key found for this signature in database
GPG key ID: 2581E71C5FA5285F
3 changed files with 5 additions and 1 deletions

View file

@ -167,6 +167,8 @@ def run( args=sys.argv[1:] ):
# (because required arguments may have been set from the config file and not on the command line)
#
log.debug( "Final configuration : %s", repr(obfuscate(vars(config))) )
# Creates the chat engine depending on the 'backend' parameter
chatter = BotArgsHelper.chatter(config)

View file

@ -148,6 +148,6 @@ def parse_args_2pass( parser, args, config ):
config = parser.parse_args(args=args,namespace=config)
# From the bootstrap parameters, only logging level may need to be read again
configure_logging(config.verbosity,debug=config.debug)
log.debug( "Final configuration : %s", repr(obfuscate(vars(config))) )
log.debug( "Configuration after 2nd pass : %s", repr(obfuscate(vars(config))) )
return config

View file

@ -696,6 +696,8 @@ def run( args=sys.argv[1:] ):
should_exist=True,
fallback_to=1 )[0]
log.debug( "Final configuration : %s", repr(obfuscate(vars(config))) )
# Creates the chat engine depending on the 'backend' parameter
chatter = BotArgsHelper.chatter(config)