X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FObject%2FRemote%2FWatchDog.pm;h=6623e02e26e306c650640b1aeb2754f51045da21;hb=b3e30047cb366c1a78e2ec716f7e89136430384f;hp=7e4d1fed52c1ae0a7fc6d58affc39bdf3574ebcc;hpb=5add5e29851e82862e4d8f6d67dfce559f6685ce;p=scpubgit%2FObject-Remote.git diff --git a/lib/Object/Remote/WatchDog.pm b/lib/Object/Remote/WatchDog.pm index 7e4d1fe..6623e02 100644 --- a/lib/Object/Remote/WatchDog.pm +++ b/lib/Object/Remote/WatchDog.pm @@ -25,8 +25,8 @@ sub BUILD { #if the Watchdog is killing the process we don't want any chance of the #process not actually exiting and die could be caught by an eval which #doesn't do us any good - log_error { sprintf("Watchdog has expired, terminating the process at file %s line %s", __FILE__, __LINE__ + 1); }; - exit(1); + log_fatal { "Watchdog has expired, terminating the process" }; + exit(1); }; Dlog_debug { "Initializing watchdog with timeout of $_ seconds" } $self->timeout;