mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Adding the facility to the accelerate daemon syslog calls
This commit is contained in:
@@ -86,7 +86,7 @@ PIDFILE = os.path.expanduser("~/.accelerate.pid")
|
|||||||
CHUNK_SIZE=10240
|
CHUNK_SIZE=10240
|
||||||
|
|
||||||
def log(msg):
|
def log(msg):
|
||||||
syslog.syslog(syslog.LOG_NOTICE, msg)
|
syslog.syslog(syslog.LOG_NOTICE|syslog.LOG_DAEMON, msg)
|
||||||
|
|
||||||
if os.path.exists(PIDFILE):
|
if os.path.exists(PIDFILE):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user