Skip to content

Commit 8189c68

Browse files
committed
initialize log level early
The default log level needs to be initialized before everthing else, otherwise an error during the option parsing (eg. when an unknown option is passed) will result in an unessecary stack trace.
1 parent 360ed0b commit 8189c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function __construct($autocatch = true)
9494
if ($autocatch) {
9595
set_exception_handler(array($this, 'fatal'));
9696
}
97-
97+
$this->setLogLevel($this->logdefault);
9898
$this->colors = new Colors();
9999
$this->options = new Options($this->colors);
100100
}

0 commit comments

Comments
 (0)