summaryrefslogtreecommitdiffstats
path: root/src/sbin
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2004-11-11 15:49:05 +0000
committerNarayan Desai <desai@mcs.anl.gov>2004-11-11 15:49:05 +0000
commit0db560e2a7d05ab084064798a1b8807bd17138b6 (patch)
tree57e95bae1d5fd1594cf0e85daf561e4325aabee4 /src/sbin
parent0afad97dfdd9fa0051240f06b18ad37c7a62fe3c (diff)
downloadbcfg2-0db560e2a7d05ab084064798a1b8807bd17138b6.tar.gz
bcfg2-0db560e2a7d05ab084064798a1b8807bd17138b6.tar.bz2
bcfg2-0db560e2a7d05ab084064798a1b8807bd17138b6.zip
fix early logging
(Logical change 1.151) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@675 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/sbin')
-rw-r--r--src/sbin/Bcfg2Server3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbin/Bcfg2Server b/src/sbin/Bcfg2Server
index 47c61a25d..b333db9db 100644
--- a/src/sbin/Bcfg2Server
+++ b/src/sbin/Bcfg2Server
@@ -6,7 +6,7 @@ __revision__ = '$Revision'
from getopt import getopt, GetoptError
from socket import gethostbyaddr, herror
-from syslog import syslog, LOG_INFO, LOG_ERR
+from syslog import openlog, syslog, LOG_INFO, LOG_ERR, LOG_LOCAL0
from sys import argv, exit as sysexit, exc_info
from time import time
from traceback import extract_tb
@@ -146,6 +146,7 @@ class BcfgServer(Server):
del t, v, tb
if __name__ == '__main__':
+ openlog("Bcfg2", 0, LOG_LOCAL0)
options = {'v':'verbose', 'd':'debug'}
doptions = {'D':'daemon', 'C':'client'}
setup = dgetopt(argv[1:], options, doptions)