mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix setting option attributes when processing log_level
and log_file
This commit is contained in:
parent
3c60e2388e
commit
61afaf1792
1 changed files with 2 additions and 0 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Reference in a new issue