Skip to content

Commit 6190b5c

Browse files
David Coutadeurdavidcoutadeur
authored andcommitted
display error logs even when $debug=false (#275)
1 parent b4819f1 commit 6190b5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

htdocs/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ function sha256($string)
153153
$smarty->error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING;
154154
}
155155

156-
error_reporting(0);
156+
# By default, only display error logs and not the other levels
157+
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_WARNING);
157158
if ($debug) {
158159
error_reporting(E_ALL);
159160
# Set debug for LDAP

0 commit comments

Comments
 (0)