diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-10 04:51:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 04:51:08 +0200 |
commit | 694df9c1c6ec244c416c2d8e85657651b6a28dab (patch) | |
tree | 2985dfd5ed865d9b2192982196e846efc0c56656 /Bugzilla.pm | |
parent | 755bc194dcea3481fa41b5884a98a5aa086fe09e (diff) | |
download | bugzilla-694df9c1c6ec244c416c2d8e85657651b6a28dab.tar.gz bugzilla-694df9c1c6ec244c416c2d8e85657651b6a28dab.tar.xz |
Bug 1450679 - Replace custom Sentry integration with Logging
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r-- | Bugzilla.pm | 6 |
1 files changed, 3 insertions, 3 deletions
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. |