diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-12-21 00:44:24 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-12-21 00:44:24 +0300 |
commit | cad78ef02cc0f05cdd32d3b07b1d99f431347622 (patch) | |
tree | cd02a3ca5e36fb9cb2c79bdda4c48cbdd802b7fe /plugins/Monolog | |
parent | e567c3605c9852143401f32c01b033478cc8b0e0 (diff) |
In EchoHandler print out formatted message, not just level and message. (#15298)
Diffstat (limited to 'plugins/Monolog')
-rw-r--r-- | plugins/Monolog/Handler/EchoHandler.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Monolog/Handler/EchoHandler.php b/plugins/Monolog/Handler/EchoHandler.php index e32f2a038b..cf8cc6662c 100644 --- a/plugins/Monolog/Handler/EchoHandler.php +++ b/plugins/Monolog/Handler/EchoHandler.php @@ -17,7 +17,11 @@ class EchoHandler extends AbstractProcessingHandler { protected function write(array $record) { - $message = $record['level_name'] . ': ' . $record['message']; + if (isset($record['formatted'])) { + $message = $record['formatted']; + } else { + $message = $record['level_name'] . ': ' . $record['message']; + } echo $message . "\n"; } |