]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Added stderr to the log file in addition to stdout
authorYuri Weinstein <yweinste@redhat.com>
Wed, 10 Aug 2016 20:15:00 +0000 (13:15 -0700)
committerYuri Weinstein <yweinste@redhat.com>
Wed, 10 Aug 2016 20:15:00 +0000 (13:15 -0700)
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
nightlies/cron_wrapper

index 2e0af848971999c0a942a863aa389b2d5aeacb35..ced5a32b083f776f3821be3566d1ef0bfb912a24 100755 (executable)
@@ -44,7 +44,10 @@ else
        exec 200>>$LOG
        # if $LOG is locked by other process - wait for 20 sec
        flock -w 20 200 || LOG=$LOG_LOCK_ERR
+       echo "stdout:" >> $LOG
        cat $STDOUT >> $LOG
+       echo "stderr:" >> $LOG
+       cat $STDERR >> $LOG
        # unlock
        flock -u 200
 fi