Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ro0NL committed Feb 19, 2025
1 parent b6c934e commit 68439c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Monolog/DockerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ public function close(): void

protected function write(LogRecord $record): void
{
foreach (self::EXCLUDED_DEPRECATION_LOGS as $excludedDeprecationLog) {
if (preg_match($excludedDeprecationLog, $record->message)) {
return;
if ('deprecation' === $record->channel) {
foreach (self::EXCLUDED_DEPRECATION_LOGS as $excludedDeprecationLog) {
if (preg_match($excludedDeprecationLog, $record->message)) {
return;
}
}
}

Expand Down

0 comments on commit 68439c7

Please sign in to comment.