Skip to content

Commit

Permalink
Limit the body (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell authored May 29, 2024
1 parent 988135c commit 4d827b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Logging/LogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Monolog\Logger as Monolog;
use Monolog\LogRecord;
use Statamic\Support\Arr;
use Statamic\Support\Str;
use Throwable;

class LogHandler extends AbstractProcessingHandler
Expand Down Expand Up @@ -39,7 +40,7 @@ public function write(array|LogRecord $record): void
front()
->post(
"/conversations/$conversation/comments",
['body' => $errors->implode(PHP_EOL)]
['body' => Str::limit($errors->implode(PHP_EOL), 10000)]
)->throw();

return;
Expand Down

0 comments on commit 4d827b6

Please sign in to comment.