Changeset 377 for trunk/jobmond
- Timestamp:
- 06/13/07 16:14:05 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jobmond/jobmond.py
r373 r377 124 124 DAEMONIZE = cfg.getboolean( 'DEFAULT', 'DAEMONIZE' ) 125 125 126 SYSLOG_LEVEL = -1 127 SYSLOG_FACILITY = None 128 126 129 try: 127 130 USE_SYSLOG = cfg.getboolean( 'DEFAULT', 'USE_SYSLOG' ) … … 133 136 debug_msg( 0, 'ERROR: no option USE_SYSLOG found: assuming yes' ) 134 137 138 135 139 if USE_SYSLOG: 136 140 … … 147 151 SYSLOG_FACILITY = eval( 'syslog.LOG_' + cfg.get( 'DEFAULT', 'SYSLOG_FACILITY' ) ) 148 152 149 except AttributeError, detail:153 except ConfigParser.NoOptionError: 150 154 151 155 SYSLOG_FACILITY = syslog.LOG_DAEMON … … 960 964 """Print msg if at or above current debug level""" 961 965 966 global DAEMONIZE, DEBUG_LEVEL, SYSLOG_LEVEL 967 962 968 if (not DAEMONIZE and DEBUG_LEVEL >= level): 963 969 sys.stderr.write( msg + '\n' )
Note: See TracChangeset
for help on using the changeset viewer.