Update of /cvsroot/csp/APPLICATIONS/CSPSim/Bin
In directory sc8-pr-cvs1:/tmp/cvs-serv6742
Modified Files:
CSPSim.py
Log Message:
Index: CSPSim.py
===================================================================
RCS file: /cvsroot/csp/APPLICATIONS/CSPSim/Bin/CSPSim.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** CSPSim.py 24 Jul 2003 08:10:55 -0000 1.10
--- CSPSim.py 16 Aug 2003 10:23:12 -0000 1.11
***************
*** 45,48 ****
--- 45,49 ----
print " --config=path path to config (.ini) file"
print " --log=classes set the logging classes"
+ print " --slog=level set the simdata logging level"
print " --help help message"
***************
*** 212,215 ****
--- 213,217 ----
log_classes = []
other_args = []
+ simdata_loglevel = "ALERT"
config = findConfig()
***************
*** 230,233 ****
--- 232,237 ----
elif arg.startswith("--log="):
log_classes.extend(arg[6:].split(':'))
+ elif arg.startswith("--slog="):
+ simdata_loglevel = arg[7:]
else:
other_args.append(arg)
***************
*** 241,245 ****
loadCSP()
! SimData.log().setLogLevels(SimData.LOG_ALL, SimData.LOG_ALERT)
print "Loading configuration from '%s'." % config
--- 245,256 ----
loadCSP()
!
! try:
! simdata_loglevel = eval("SimData.LOG_%s" % simdata_loglevel.upper())
! except:
! print "Invalid SimData logging level, defaulting to 'ALERT'"
! simdata_loglevel = SimData.LOG_ALERT
!
! SimData.log().setLogLevels(SimData.LOG_ALL, simdata_loglevel)
print "Loading configuration from '%s'." % config
|