Allow setting -1 log size
This commit is contained in:
parent
3139f8a211
commit
77c7d81e33
@ -223,7 +223,7 @@ class Logger extends SettingsAbstract
|
|||||||
*/
|
*/
|
||||||
public function setMaxSize(int $maxSize): self
|
public function setMaxSize(int $maxSize): self
|
||||||
{
|
{
|
||||||
$this->maxSize = \max($maxSize, 100 * 1024);
|
$this->maxSize = $maxSize === -1 ? $maxSize : \max($maxSize, 100 * 1024);
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user