Skip to content

Commit 0697bcd

Browse files
committed
avoid unnecessary logging
1 parent 899949f commit 0697bcd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/WebApp/Service.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ public function run() {
2424

2525
// Render when required
2626
if ($action == 'render') {
27-
Log::debug('$_SERVER=', $_SERVER);
28-
Log::debug('Request=', $this->app->request);
27+
if ($this->app->config->has('debug') && $this->app->config->get('debug')) {
28+
Log::debug('$_SERVER=', $_SERVER);
29+
Log::debug('Request=', $this->app->request);
30+
}
2931
$this->theme->render($this->page);
3032
Session\Utils::isFreshLogin();
3133
} else if ($action == 'redirect') {

0 commit comments

Comments
 (0)