Permalink
Browse files

feature(engine): also log to php error_log when log is shown on screen

  • Loading branch information...
jdalsem committed Jan 11, 2016
1 parent fad8069 commit 9f630e58b948ea981ae4bf8893818a343518db2d
Showing with 3 additions and 3 deletions.
  1. +3 −3 engine/classes/Elgg/Logger.php
@@ -88,7 +88,7 @@ public function setLevel($level) {
/**
* Get the current logging level
- *
+ *
* @return int
*/
public function getLevel() {
@@ -246,9 +246,9 @@ protected function process($data, $display, $level) {
echo '<pre class="elgg-logger-data">';
echo htmlspecialchars(print_r($data, true), ENT_QUOTES, 'UTF-8');
echo '</pre>';
- } else {
- error_log(print_r($data, true));
}
+
+ error_log(print_r($data, true));
}
/**

0 comments on commit 9f630e5

Please sign in to comment.