Ignore:
Timestamp:
Oct 26, 2007 2:54:47 PM (12 years ago)
Author:
jpfasano
Message:

Some cleanup dealing with removal of NBuserConfig.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBlogMessages.py

    r681 r706  
    22
    33import time
    4 import NBuserConfig
     4import NBuserParameters
    55
    66#TODO: one could open the logfile once in the beginning, set it to sys.stdout, flush after each message, and close it finally
     
    1212  logMsg = time.ctime(time.time())+': '
    1313  logMsg += msg
    14   if NBuserConfig.LOGPRINT :
     14  if NBuserParameters.LOGPRINT :
    1515    print logMsg
    16   if len(NBuserConfig.LOGFILE) > 0 and not NBuserConfig.LOGFILE.isspace() :
    17     logfile=open(NBuserConfig.NIGHTLY_BUILD_ROOT_DIR+'/'+NBuserConfig.LOGFILE, 'a')
     16  if len(NBuserParameters.LOGFILE) > 0 and not NBuserParameters.LOGFILE.isspace() :
     17    logfile=open(NBuserParameters.NIGHTLY_BUILD_ROOT_DIR+'/'+NBuserParameters.LOGFILE, 'a')
    1818    logfile.write(logMsg+'\n')
    1919#    logfile.flush()
Note: See TracChangeset for help on using the changeset viewer.