Changeset 13313 for trunk


Ignore:
Timestamp:
04/04/12 17:12:21 (13 years ago)
Author:
Daniela Dorner
Message:
improved logging
Location:
trunk/DataCheck/Transfer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataCheck/Transfer/RsyncAuxLP.sh

    r13107 r13313  
    4242   if ! [ -d $auxdirdaq ]
    4343   then
    44       printprocesslog "WARN "$auxdirdaq" not found. Data were probably taken on data" >> $logfile 2>&1
    45       echo `date`": "$auxdirdaq" not found. Data were probably taken on data" >> $logfile 2>&1
     44      auxdirdata=/loc_data/aux/$date/
     45      if ! [ -d $auxdirdata ]
     46      then
     47         printprocesslog "INFO "$auxdirdaq" and "$auxdirdata" not found. " >> $logfile 2>&1
     48      else
     49         printprocesslog "WARN "$auxdirdaq" not found, but "$auxdirdata". Data were probably taken on data." >> $logfile 2>&1
     50      fi
     51      echo `date`": "$auxdirdaq" not found. " >> $logfile 2>&1
    4652      continue
    4753   fi
  • trunk/DataCheck/Transfer/RsyncRawLP.sh

    r13107 r13313  
    3939   # raw data directories on data
    4040   rawdirdaq=/daq/raw/$date/ # /loc_data from daq via nfs on data
     41   rawdirdata=/loc_data/raw/$date
    4142   if ! [ -d $rawdirdaq ]
    4243   then
    4344      echo `date`": "$rawdirdaq" not found. No data available on daq." >> $logfile 2>&1
    44       printprocesslog "INFO "$rawdirdaq" not found. No data available on daq." >> $logfile 2>&1
     45      if [ -d $rawdirdata ]
     46      then
     47         printprocesslog "WARN "$rawdirdaq" not found, but "$rawdirdata". Data probably taken on data." >> $logfile 2>&1
     48      else
     49         printprocesslog "INFO "$rawdirdaq" not found. No data available on daq." >> $logfile 2>&1
     50      fi
    4551      continue
    4652   fi
    47    rawdirdata=/loc_data/raw/$date
    4853   if ! [ -d $rawdirdata ]
    4954   then
Note: See TracChangeset for help on using the changeset viewer.