]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1445042 - log heartbeat errors
authorDylan William Hardison <dylan@hardison.net>
Tue, 13 Mar 2018 15:08:06 +0000 (11:08 -0400)
committerGitHub <noreply@github.com>
Tue, 13 Mar 2018 15:08:06 +0000 (11:08 -0400)
heartbeat.cgi

index 40dc8e79b278e6113ffbf797001aa908f148b45a..bb1c9dd4696db40b09f948660732f437d0e4798d 100755 (executable)
@@ -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');