mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Better merge conflict resolution from the initial merge
This commit is contained in:
parent
8fd53a4808
commit
f2c8cb13d0
1 changed files with 7 additions and 9 deletions
|
@ -658,6 +658,13 @@ class LogLevelMixIn(six.with_metaclass(MixInMeta, object)):
|
|||
self._default_logging_level_
|
||||
)
|
||||
|
||||
logfile = getattr(self.options,
|
||||
# From the options setting
|
||||
self._logfile_config_setting_name_,
|
||||
# From the default setting
|
||||
self._default_logging_logfile_
|
||||
)
|
||||
|
||||
cli_log_path = 'cli_{0}_log_file'.format(
|
||||
self.get_prog_name().replace('-', '_')
|
||||
)
|
||||
|
@ -670,15 +677,6 @@ class LogLevelMixIn(six.with_metaclass(MixInMeta, object)):
|
|||
# Remove it from config so it inherits from log_file
|
||||
self.config.pop(self._logfile_config_setting_name_)
|
||||
|
||||
logfile = self.config.get(
|
||||
# First from the config cli setting
|
||||
cli_log_path,
|
||||
self.config.get(
|
||||
# From the config setting
|
||||
self._logfile_config_setting_name_
|
||||
)
|
||||
)
|
||||
|
||||
if self.config['verify_env']:
|
||||
# Verify the logfile if it was explicitly set but do not try to
|
||||
# verify the default
|
||||
|
|
Loading…
Add table
Reference in a new issue