diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-04-04 05:05:04 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-20 23:52:50 +0200 |
commit | 4a66989c7cf4bcb1afce0c4e39a3f1c87ef0e57c (patch) | |
tree | c96b05f8f3ca81ac7bbb8ad061fc0bab2d2fcc04 /Log/Log4perl | |
parent | 77468653f4f3e3285bc68e455b5b4e4265362aeb (diff) | |
download | bugzilla-4a66989c7cf4bcb1afce0c4e39a3f1c87ef0e57c.tar.gz bugzilla-4a66989c7cf4bcb1afce0c4e39a3f1c87ef0e57c.tar.xz |
Bug 1455495 - Replace apache with Mojolicious
Diffstat (limited to 'Log/Log4perl')
-rw-r--r-- | Log/Log4perl/Layout/Mozilla.pm | 3 |
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, |