Fix setting option attributes when processing log_level and log_file

This commit is contained in:
Denys Havrysh 2016-11-09 10:51:03 +02:00
parent 3c60e2388e
commit 61afaf1792

View file

@ -540,6 +540,7 @@ class LogLevelMixIn(six.with_metaclass(MixInMeta, object)):
if not getattr(self, '_skip_console_logging_config_', False):
group.add_option(
'-l', '--log-level',
dest=self._loglevel_config_setting_name_,
choices=list(log.LOG_LEVELS),
help='Console logging log level. One of {0}. '
'Default: \'{1}\'.'.format(
@ -550,6 +551,7 @@ class LogLevelMixIn(six.with_metaclass(MixInMeta, object)):
group.add_option(
'--log-file',
dest=self._logfile_config_setting_name_,
default=None,
help='Log file path. Default: \'{0}\'.'.format(
self._default_logging_logfile_