Skip to content

Commit

Permalink
Disable Debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonsimaogoncalves committed May 30, 2018
1 parent 38186f2 commit 336d199
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Controller/AppController.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ public function initialize()

$this->loadComponent('RequestHandler');
$this->loadComponent('RestApi.AccessControl');

if ($this->request->is('json')) {
Configure::write('debug', false);
}
}

/**
Expand Down

0 comments on commit 336d199

Please sign in to comment.