diff options
| author | Asko Nõmm <asko@nth.ee> | 2024-11-15 17:22:24 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nth.ee> | 2024-11-15 17:22:24 +0200 |
| commit | 086d719dc61d2c531e0b9fa51678b8e2f34dafdb (patch) | |
| tree | d7b7c2a097dea2b16213992f7a8ab01b2494dee9 /src/Format.php | |
| parent | 88ee33c51b9696eb9c4b31afeae9487b21c0565f (diff) | |
Improve tests.
Diffstat (limited to 'src/Format.php')
| -rw-r--r-- | src/Format.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/Format.php b/src/Format.php index 33e986b..4517e0a 100644 --- a/src/Format.php +++ b/src/Format.php @@ -43,7 +43,7 @@ enum Format /** @var string $trace_line */ $trace_line = $message->trace['line']; - $json = json_encode([ + return json_encode([ 'date' => $dateTime->format('Y-m-d H:i:s'), 'level' => strtoupper($message->level->value), 'message' => $message->content, @@ -53,12 +53,6 @@ enum Format 'line' => $trace_line, ], ]); - - if ($json === false) { - return ''; - } - - return $json; } /** |
