Test suite: Add more timestamping of debugging information.
authorMartin Schwenke <martin@meltin.net>
Mon, 16 Aug 2010 23:55:48 +0000 (09:55 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 16 Aug 2010 23:55:48 +0000 (09:55 +1000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
tests/scripts/ctdb_test_functions.bash

index a7e1baf2d69c4aa9e5749c784220f7c24709eb9b..68f7994da07e29336c4af9655509f4319975de65 100644 (file)
@@ -359,7 +359,7 @@ cluster_is_healthy ()
     else
        echo "Cluster is UNHEALTHY"
        if ! ${ctdb_test_restart_scheduled:-false} ; then
-           echo "DEBUG:"
+           echo "DEBUG AT $(date '+%F %T'):"
            local i
            for i in "onnode -q 0 $CTDB status" "onnode -q 0 onnode all $CTDB scriptstatus" ; do
                echo "$i"
@@ -581,7 +581,7 @@ tcpdump_wait ()
 
     echo "Waiting for tcpdump to capture some packets..."
     if ! wait_until 30 tcpdump_check ; then
-       echo "DEBUG:"
+       echo "DEBUG AT $(date '+%F %T'):"
        local i
        for i in "onnode -q 0 $CTDB status" "netstat -tanp" "tcpdump -n -e -r $tcpdump_filename" ; do
            echo "$i"