summaryrefslogtreecommitdiff
path: root/src/Format.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Format.php')
-rw-r--r--src/Format.php8
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;
}
/**