Skip to content

Commit 9eb091d

Browse files
committed
Add config options for logging
1 parent d490578 commit 9eb091d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

salt/config.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ def minion_config(path):
2121
'cachedir': '/var/cache/salt',
2222
'disable_modules': [],
2323
'open_mode': False,
24+
'log_file': '/var/log/salt/master',
25+
'log_level': 'DEBUG',
26+
'out_level': 'ERROR',
2427
}
2528

2629
if os.path.isfile(path):
@@ -54,6 +57,9 @@ def master_config(path):
5457
'pki_dir': '/etc/salt/pki',
5558
'cachedir': '/var/cache/salt',
5659
'open_mode': False,
60+
'log_file': '/var/log/salt/master',
61+
'log_level': 'DEBUG',
62+
'out_level': 'ERROR',
5763
}
5864

5965
if os.path.isfile(path):
@@ -73,3 +79,4 @@ def master_config(path):
7379
opts['open_mode'] = False
7480

7581
return opts
82+

0 commit comments

Comments
 (0)