From 694df9c1c6ec244c416c2d8e85657651b6a28dab Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Mon, 9 Apr 2018 22:51:08 -0400 Subject: Bug 1450679 - Replace custom Sentry integration with Logging --- Bugzilla.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 1188102d3..a8b164b57 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -100,7 +100,7 @@ sub init_page { } if (i_am_cgi()) { - Log::Log4perl::MDC->put(remote_ip => remote_ip()); + Bugzilla::Logging->fields->{remote_ip} = remote_ip(); } if (${^TAINT}) { @@ -386,8 +386,8 @@ sub login { my $authenticated_user = $authorizer->login($type); - if (i_am_cgi()) { - Log::Log4perl::MDC->put(user_id => $authenticated_user->id); + if (i_am_cgi() && $authenticated_user->id) { + Bugzilla::Logging->fields->{user_id} = $authenticated_user->id; } # At this point, we now know if a real person is logged in. -- cgit v1.2.3-24-g4f1b