Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tryption-main authored Mar 15, 2019
1 parent 0cd370f commit d1dfa5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,11 @@ function log($level, $leveltext, $msg) {
if ($msg instanceof Exception || $msg instanceof Error) {
$excmessage = method_exists($msg, 'getDetailMessage') ? $msg->getDetailMessage() : $msg->getMessage();
$logmessage = $leveltext.": ".$excmessage."\n".Log::prettybacktrace($msg->getTrace());
$showrequest = true;
} else {
$logmessage = $leveltext.": ". print_r($msg,true)."\n";
// Generate a backtrace if it was requested or in severe cases
if ($level == Log::BACKTRACE || $level >= Log::FAIL) {
$backtrace = "\n".Log::prettybacktrace();
$showrequest = true;
}
}

Expand Down

0 comments on commit d1dfa5b

Please # to comment.