Changeset 47af458


Ignore:
Timestamp:
08/08/13 12:02:21 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
00c51cb
Parents:
04b42e5
Message:

Don't need to echo datestamp to logfiles twice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/lpreserver/backend/functions.sh

    rf6cd78a r47af458  
    242242  if [ "$2" = "sync" -a "$TIME" = "sync" ] ; then 
    243243     export DIDREP=1 
    244      echo_log "`date`: Starting replication SYNC task on ${DATASET}" 
     244     echo_log "Starting replication SYNC task on ${DATASET}" 
    245245     queue_msg "`date`: Starting replication SYNC task on ${DATASET}\n" 
    246246     start_rep_task "$LDATA" 
     
    249249     # Ready to do a scheduled replication 
    250250     export DIDREP=1 
    251      echo_log "`date`: Starting replication SCHEDULED task on ${DATASET}" 
     251     echo_log "Starting replication SCHEDULED task on ${DATASET}" 
    252252     queue_msg "`date`: Starting replication SCHEDULED task on ${DATASET}\n" 
    253253     start_rep_task "$LDATA" 
     
    293293     zfs set backup:lpreserver=' ' ${LDATA}@$lastSEND 
    294294     zfs set backup:lpreserver=LATEST ${LDATA}@$lastSNAP 
    295      echo_log "`date`: Finished replication task on ${DATASET}" 
     295     echo_log "Finished replication task on ${DATASET}" 
    296296     save_rep_props 
    297297     zStatus=$? 
     
    305305     echo "\nRecv log:\n" >> ${FLOG} 
    306306     cat ${CMDLOG2} >> ${FLOG} 
    307      echo_log "`date`: FAILED replication task on ${DATASET}: LOGFILE: $FLOG" 
     307     echo_log "FAILED replication task on ${DATASET}: LOGFILE: $FLOG" 
    308308  fi 
    309309 
     
    316316  if [ "`basename $DATASET`" != "$DATASET" ] ; then return 0; fi 
    317317 
    318   echo_log "`date`: Saving dataset properties for: ${DATASET}" 
     318  echo_log "Saving dataset properties for: ${DATASET}" 
    319319  queue_msg "`date`: Saving dataset properties for: ${DATASET}\n" 
    320320 
     
    325325        | ssh -p ${REPPORT} ${REPUSER}@${REPHOST} "cat > $rProp" 
    326326  if [ $? -eq 0 ] ; then 
    327     echo_log "`date`: Successful save of dataset properties for: ${DATASET}" 
     327    echo_log "Successful save of dataset properties for: ${DATASET}" 
    328328    queue_msg "`date`: Successful save of dataset properties for: ${DATASET}\n" 
    329329    return 0 
    330330  else 
    331     echo_log "`date`: Failed saving dataset properties for: ${DATASET}" 
     331    echo_log "Failed saving dataset properties for: ${DATASET}" 
    332332    queue_msg "`date`: Failed saving dataset properties for: ${DATASET}\n" 
    333333    return 1 
Note: See TracChangeset for help on using the changeset viewer.