From 0db560e2a7d05ab084064798a1b8807bd17138b6 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 11 Nov 2004 15:49:05 +0000 Subject: 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 --- src/sbin/Bcfg2Server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/sbin') 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) -- cgit v1.2.3-1-g7c22