Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <diosmosis@users.noreply.github.com>2019-12-21 00:44:24 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-12-21 00:44:24 +0300
commitcad78ef02cc0f05cdd32d3b07b1d99f431347622 (patch)
treecd02a3ca5e36fb9cb2c79bdda4c48cbdd802b7fe /plugins/Monolog
parente567c3605c9852143401f32c01b033478cc8b0e0 (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.php6
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";
}