mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-26 18:16:24 +01:00
TelegramBotHandler: three dots replacement… (#1993)
`…` instead of `...` makes the truncation part of the message 2 characters shorter, allowing for a bit longer actual message xd
This commit is contained in:
@@ -287,7 +287,7 @@ class TelegramBotHandler extends AbstractProcessingHandler
|
||||
*/
|
||||
private function handleMessageLength(string $message): array
|
||||
{
|
||||
$truncatedMarker = ' (...truncated)';
|
||||
$truncatedMarker = ' (…truncated)';
|
||||
if (!$this->splitLongMessages && \strlen($message) > self::MAX_MESSAGE_LENGTH) {
|
||||
return [Utils::substr($message, 0, self::MAX_MESSAGE_LENGTH - \strlen($truncatedMarker)) . $truncatedMarker];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user