Skip to content

Commit

Permalink
Update src/Service/ActivityPub/ApHttpClient.php
Browse files Browse the repository at this point in the history
Co-authored-by: BentiGorlich <[email protected]>
  • Loading branch information
melroy89 and BentiGorlich authored Sep 19, 2024
1 parent 7e646dc commit e71db01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/ActivityPub/ApHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ private function logRequestException(?ResponseInterface $response, string $reque
'address' => $requestUrl,
'e' => \get_class($e),
'msg' => $e->getMessage(),
'content' => substr($content, 0, 200) ?? 'No content provided',
'content' => substr($content ?? 'No content provided', 0, 200),
]);
// And only log the full content in debug log mode
if ($content) {
Expand Down

0 comments on commit e71db01

Please sign in to comment.