Skip to content

Commit

Permalink
Merge pull request #23 from adbrosaci/fix/logging
Browse files Browse the repository at this point in the history
fix: log file uniqueness
  • Loading branch information
paveljanda committed Mar 19, 2024
2 parents fb3c252 + cce5e04 commit d6b7680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MailLogger.php
Expand Up @@ -41,7 +41,7 @@ public function log($type, Message $mail): void
if (file_exists($file) && filesize($file)) {
$file = str_replace(
static::LOG_EXTENSION,
'.' . uniqid('', true) . static::LOG_EXTENSION,
'.' . bin2hex(random_bytes(20)) . static::LOG_EXTENSION,
$file
);
}
Expand Down

0 comments on commit d6b7680

Please sign in to comment.