Skip to content

Commit

Permalink
Only log when debugging is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Sep 24, 2022
1 parent d360d93 commit cf0d6b8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Logger/Debugger.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function debug(string $msg, $data = null): bool
if ($this->config->isLogging() === false) {
return false;
}

if ($this->config->isDebugging() === false) {
return false;
}

if (!empty($data)) {
$msg .= ': ' . var_export($data, true);
Expand Down

0 comments on commit cf0d6b8

Please sign in to comment.