summaryrefslogtreecommitdiffstats
path: root/Log/Log4perl
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-04-04 05:05:04 +0200
committerDylan William Hardison <dylan@hardison.net>2018-08-04 18:25:17 +0200
commit2e9c9f5b9d1bff165a55dd7dbe54d81b2adbfde1 (patch)
treec76c12b9daf7b32be1554ab9a5f4b8a72e16a523 /Log/Log4perl
parent7f09ef208e09c85ed7087ab32e89da29bde837db (diff)
downloadbugzilla-2e9c9f5b9d1bff165a55dd7dbe54d81b2adbfde1.tar.gz
bugzilla-2e9c9f5b9d1bff165a55dd7dbe54d81b2adbfde1.tar.xz
Bug 1455495 - Replace apache with Mojolicious
Diffstat (limited to 'Log/Log4perl')
-rw-r--r--Log/Log4perl/Layout/Mozilla.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Log/Log4perl/Layout/Mozilla.pm b/Log/Log4perl/Layout/Mozilla.pm
index b625c54f4..4aedd9843 100644
--- a/Log/Log4perl/Layout/Mozilla.pm
+++ b/Log/Log4perl/Layout/Mozilla.pm
@@ -53,6 +53,9 @@ sub render {
my $mdc = Log::Log4perl::MDC->get_context;
my $fields = $mdc->{fields} // {};
+ if ($mdc->{request_id}) {
+ $fields->{request_id} = $mdc->{request_id}
+ }
my %out = (
EnvVersion => LOGGING_FORMAT_VERSION,
Hostname => $HOSTNAME,