Merge pull request #42864 from whiteinge/syndic-log-root_dir

Make syndic_log_file respect root_dir setting
This commit is contained in:
Nicole Thomas 2017-08-11 09:28:21 -04:00 committed by GitHub
commit 01ea854029

View file

@ -2136,7 +2136,7 @@ def syndic_config(master_config_path,
'pki_dir', 'cachedir', 'pidfile', 'sock_dir', 'extension_modules',
'autosign_file', 'autoreject_file', 'token_dir'
]
for config_key in ('log_file', 'key_logfile'):
for config_key in ('log_file', 'key_logfile', 'syndic_log_file'):
# If this is not a URI and instead a local path
if urlparse(opts.get(config_key, '')).scheme == '':
prepend_root_dirs.append(config_key)