Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Ne logger que les INFO et higher
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviermarchegay authored Mar 30, 2023
1 parent 204fe23 commit f332e22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Monolog/Handler/ProcessLogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ protected function write(array $record): void
if (null === $logFilename = ($this->logFilenames[$this->currentProcessCode] ?? null)) {
return;
}

if ($record['level'] < Logger::INFO) {
return;
}

if (null === $this->filesystem) {
$this->filesystem = new Filesystem(
new LocalFilesystemAdapter($this->logDir, null, \FILE_APPEND)
Expand Down

0 comments on commit f332e22

Please sign in to comment.