Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ErrorPresenter: logging 4xx errors

  • Loading branch information...
commit 351f2d7046d6f677eaaee57d41555f82bccea1e7 1 parent 796543d
David Grudl authored December 13, 2011

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  app/presenters/ErrorPresenter.php
1  app/presenters/ErrorPresenter.php
@@ -27,6 +27,7 @@ public function renderDefault($exception)
27 27
 		} elseif ($exception instanceof NA\BadRequestException) {
28 28
 			$code = $exception->getCode();
29 29
 			$this->setView(in_array($code, array(403, 404, 405, 410, 500)) ? $code : '4xx'); // load template 403.latte or 404.latte or ... 4xx.latte
  30
+			Debugger::log("HTTP code $code", 'access'); // log to access.log
30 31
 
31 32
 		} else {
32 33
 			$this->setView('500'); // load template 500.latte

0 notes on commit 351f2d7

Please sign in to comment.
Something went wrong with that request. Please try again.