Skip to content
Snippets Groups Projects
Commit d23888ac authored by ale's avatar ale
Browse files

use LOG_DAEMON

parent ee62668d
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,7 @@ class PIDFile(object): ...@@ -47,7 +47,7 @@ class PIDFile(object):
def setup_logging(foreground=False, debug=False, def setup_logging(foreground=False, debug=False,
facility=syslog.LOG_USER): facility=syslog.LOG_DAEMON):
logger = logging.getLogger() logger = logging.getLogger()
if foreground: if foreground:
logging.basicConfig() logging.basicConfig()
......
...@@ -47,7 +47,7 @@ class PIDFile(object): ...@@ -47,7 +47,7 @@ class PIDFile(object):
def setup_logging(foreground=False, debug=False, def setup_logging(foreground=False, debug=False,
facility=syslog.LOG_USER): facility=syslog.LOG_DAEMON):
logger = logging.getLogger() logger = logging.getLogger()
if foreground: if foreground:
logging.basicConfig() logging.basicConfig()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment