Skip to content

Commit

Permalink
Fixing debugging output format
Browse files Browse the repository at this point in the history
  • Loading branch information
twoln committed Dec 29, 2023
1 parent f3bb54b commit 94c9881
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/common/Logging.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,10 @@ public function debug($level, $stuff, $prefix = '', $suffix = '')
$output .= " [$file / $function / $line] ";
}
if (is_string($stuff)) {
$output .= $stuff;
$output .= $prefix . $stuff . $suffix;
} else {
$output .= var_export($stuff, TRUE);
$output .= $prefix . var_export($stuff, TRUE) . $suffix;
}
$output = $prefix . $output . $suffix;
$this->writeToFile("debug.log", $output);

return;
Expand Down

0 comments on commit 94c9881

Please sign in to comment.