mirror of
https://github.com/nicolabs/nicobot.git
synced 2026-05-21 11:57:34 +02:00
Correctly logging intermediate and final configuration
This commit is contained in:
parent
56f740d913
commit
e8896026fe
|
|
@ -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)
|
# (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
|
# Creates the chat engine depending on the 'backend' parameter
|
||||||
chatter = BotArgsHelper.chatter(config)
|
chatter = BotArgsHelper.chatter(config)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -148,6 +148,6 @@ def parse_args_2pass( parser, args, config ):
|
||||||
config = parser.parse_args(args=args,namespace=config)
|
config = parser.parse_args(args=args,namespace=config)
|
||||||
# From the bootstrap parameters, only logging level may need to be read again
|
# From the bootstrap parameters, only logging level may need to be read again
|
||||||
configure_logging(config.verbosity,debug=config.debug)
|
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
|
return config
|
||||||
|
|
|
||||||
|
|
@ -696,6 +696,8 @@ def run( args=sys.argv[1:] ):
|
||||||
should_exist=True,
|
should_exist=True,
|
||||||
fallback_to=1 )[0]
|
fallback_to=1 )[0]
|
||||||
|
|
||||||
|
log.debug( "Final configuration : %s", repr(obfuscate(vars(config))) )
|
||||||
|
|
||||||
# Creates the chat engine depending on the 'backend' parameter
|
# Creates the chat engine depending on the 'backend' parameter
|
||||||
chatter = BotArgsHelper.chatter(config)
|
chatter = BotArgsHelper.chatter(config)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue