Changeset 669 for branches


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

switch for stdout-log independent of logfile

Location:
branches/testScripts
Files:
3 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')
  • branches/testScripts/NBuserConfig.py

    r668 r669  
    2121
    2222#----------------------------------------------------------------------
     23# LOGPRINT:
     24#   switch for logoutput to stdout. If set to 1 (default) log will go to
     25#   stdout, if set to 0, then not.
    2326# LOGFILE:
    24 #   file where log messages from the nightlyBuild system will be stored
    25 #   If no file is given, then we will print to stdout.
     27#   If not empty, then log messages will go to this file.
     28#   If LOGPRINT is 1, then log messages will go to stdout as well.
    2629#   The LOGFILE will be used relative to the NIGHTLY_BUILD_ROOT_DIR, i.e.,
    2730#   log will be written into NIGHTLY_BUILD_ROOT_DIR+'/'+LOGFILE
    2831#----------------------------------------------------------------------
    2932
     33LOGPRINT='1'
    3034LOGFILE=''
    3135       
     
    168172# CONFIGURE_FLAGS = userParameters.data['CONFIGURE_FLAGS']
    169173# LOGFILE = userParameters.data['LOGFILE']
     174# LOGPRINT = userParameters.data['LOGPRINT']
  • branches/testScripts/userParametersEmpty.py

    r668 r669  
    1717'DOWNLOAD_3RD_PARTY': '',
    1818'CONFIGURE_FLAGS': '',
    19 'LOGFILE': ''
     19'LOGFILE': '',
     20'LOGPRINT': '1',
    2021}
Note: See TracChangeset for help on using the changeset viewer.