From 04198aa3816c4d8046f7e69ba2e85feeb507d79b Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Mon, 30 Apr 2018 15:09:13 -0400 Subject: [PATCH] Log valu of dbh if not connected --- scripts/zmdc.pl.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/zmdc.pl.in b/scripts/zmdc.pl.in index 8e254eed3..fceb3b440 100644 --- a/scripts/zmdc.pl.in +++ b/scripts/zmdc.pl.in @@ -301,10 +301,9 @@ sub run { if ( $Config{ZM_SERVER_ID} ) { if ( ! ( $secs_count % 60 ) ) { Debug("Connecting"); - while ( !$zm_terminate and ! ($dbh and $dbh->ping()) ) { - Warning("Not connected to db. Reconnecting"); + while ( (!$zm_terminate) and !($dbh and $dbh->ping()) ) { + Warning("Not connected to db ($dbh). Reconnecting"); $dbh = zmDbConnect(); - Debug("Conneted? : $dbh"); } my @cpuload = CpuLoad(); Debug("UPdating Server record @cpuload");