Skip to content

Commit

Permalink
Update ErrorLogger.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thorewi authored Apr 4, 2022
1 parent d18ef7f commit ccb380f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ErrorLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ protected function sendEmail($message): void
@unlink($logFile);
}

$messageHash = md5(preg_replace('~(Resource id #)\d+~', '$1', $message));
$messageHash = preg_replace('~(Resource id #)\d+~', '$1', $message);
$messageHash = preg_replace('~(PID: )\d+~', '$1', $messageHash);
$messageHash = md5($messageHash);

if (
// ještě se vejdeme do limitu v rámci aktuálního requestu
Expand Down

0 comments on commit ccb380f

Please sign in to comment.