Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8189c68

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /