Ignore:
Timestamp:
Oct 23, 2007 9:19:03 AM (14 years ago)
Author:
stefan
Message:

switch for stdout-log independent of logfile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/testScripts/NBlogMessages.py

    r668 r669  
    1212  logMsg = time.ctime(time.time())+': '
    1313  logMsg += msg
    14   if len(NBuserConfig.LOGFILE) == 0 or NBuserConfig.LOGFILE.isspace() :
     14  if NBuserConfig.LOGPRINT :
    1515    print logMsg
    16   else :
     16  if len(NBuserConfig.LOGFILE) > 0 and not NBuserConfig.LOGFILE.isspace() :
    1717    logfile=open(NBuserConfig.NIGHTLY_BUILD_ROOT_DIR+'/'+NBuserConfig.LOGFILE, 'a')
    1818    logfile.write(logMsg+'\n')
Note: See TracChangeset for help on using the changeset viewer.