Skip to content

Commit 052e04e

Browse files
authored
fix line formatter #20
1 parent f746dbb commit 052e04e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TelegramHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function write(array $record): void
9595
*/
9696
protected function getDefaultFormatter(): FormatterInterface
9797
{
98-
return new LineFormatter("%message% %context% %extra%\n");
98+
return new LineFormatter("%message% %context% %extra%\n", null, false, true);
9999
}
100100

101101
/**
@@ -124,4 +124,4 @@ private function sendMessage(string $text): void
124124

125125
file_get_contents('https://api.telegram.org/bot'.$this->botToken.'/sendMessage?' . $httpQuery);
126126
}
127-
}
127+
}

0 commit comments

Comments
 (0)