Allow setting -1 log size

This commit is contained in:
Daniil Gentili 2020-10-17 01:07:46 +02:00
parent 3139f8a211
commit 77c7d81e33

View File

@ -223,7 +223,7 @@ class Logger extends SettingsAbstract
*/
public function setMaxSize(int $maxSize): self
{
$this->maxSize = \max($maxSize, 100 * 1024);
$this->maxSize = $maxSize === -1 ? $maxSize : \max($maxSize, 100 * 1024);
return $this;
}