summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-13 16:08:06 +0100
committerGitHub <noreply@github.com>2018-03-13 16:08:06 +0100
commit6738d7497baeef5c21d4cfa0686bab10b1194815 (patch)
tree865f50ce74609eebc8e80afadef13535c7a94b12
parent6422bd9756041fee92b5df952f8feb6065525ce8 (diff)
downloadbugzilla-6738d7497baeef5c21d4cfa0686bab10b1194815.tar.gz
bugzilla-6738d7497baeef5c21d4cfa0686bab10b1194815.tar.xz
Bug 1445042 - log heartbeat errors
-rwxr-xr-xheartbeat.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/heartbeat.cgi b/heartbeat.cgi
index 40dc8e79b..bb1c9dd46 100755
--- a/heartbeat.cgi
+++ b/heartbeat.cgi
@@ -13,6 +13,7 @@ use warnings;
use lib qw(. lib local/lib/perl5);
use Bugzilla;
+use Bugzilla::Logging;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Update;
@@ -32,7 +33,7 @@ my $ok = eval {
die "missing bmo feature dependencies" unless Bugzilla->has_feature('bmo');
1;
};
-warn "heartbeat error: $@" if !$ok && $@;
+FATAL("heartbeat error: $@") if !$ok && $@;
my $cgi = Bugzilla->cgi;
print $cgi->header(-type => 'text/plain', -status => $ok ? '200 OK' : '500 Internal Server Error');