metadata proxy will use syslog as default log
Bug #1183614 Change-Id: I39f07fc7d232148c50cf85fbc4ca6ca7cde8fdfa
This commit is contained in:
parent
a87e51cebb
commit
3ab6ad34ec
@ -55,6 +55,8 @@ def get_log_args(conf, log_file_name):
|
||||
log_dir = os.path.dirname(conf.log_file)
|
||||
if log_dir:
|
||||
cmd_args.append('--log-dir=%s' % log_dir)
|
||||
else:
|
||||
cmd_args.append('--use-syslog')
|
||||
return cmd_args
|
||||
|
||||
|
||||
|
@ -362,7 +362,7 @@ class TestLogArgs(base.BaseTestCase):
|
||||
'log_dir': None,
|
||||
'log_file': None}
|
||||
conf = dhcp_agent.DictModel(conf_dict)
|
||||
expected_args = ['--debug']
|
||||
expected_args = ['--debug', '--use-syslog']
|
||||
args = config.get_log_args(conf, 'log_file_name')
|
||||
self.assertEqual(expected_args, args)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user