mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
configd, since python3 conversion, it seems that our syslog messages are being forwarded to the wrong facility
This commit is contained in:
parent
93731e4212
commit
ee9e704502
@ -39,6 +39,7 @@ import signal
|
||||
import time
|
||||
import socket
|
||||
import subprocess
|
||||
import syslog
|
||||
import modules.processhandler
|
||||
import modules.csconfigparser
|
||||
from modules.daemonize import Daemonize
|
||||
@ -122,6 +123,7 @@ this_config = get_config()
|
||||
validate_config(this_config)
|
||||
if len(sys.argv) > 1 and 'console' in sys.argv[1:]:
|
||||
print('run %s in console mode' % sys.argv[0])
|
||||
syslog.openlog("configd.py")
|
||||
if 'profile' in sys.argv[1:]:
|
||||
# profile configd
|
||||
# for graphical output use gprof2dot:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user