noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 60/65: Set properly the error log


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 60/65: Set properly the error log
Date: Wed, 09 Sep 2015 08:27:35 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit cb12528d2b0fb99fd5ef0524fe1741275cac5526
Author: Dany De Bontridder <address@hidden>
Date:   Tue Sep 8 11:59:46 2015 +0200

    Set properly the error log
---
 include/constant.php |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/include/constant.php b/include/constant.php
index 23a7078..4cc0871 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -125,15 +125,13 @@ if ( DEBUG ) {
        ini_set("display_errors",1);
        ini_set("html_errors",1);
         ini_set('log_errors',1);
-        ini_set('error_log','syslog');
 }
 else {
         // Rapporte les erreurs d'exécution de script
-        error_reporting(E_ERROR | E_WARNING | E_PARSE);
-        ini_set("display_errors",1);
-       ini_set("html_errors",1);
+        error_reporting(E_ERROR | E_WARNING | E_PARSE|E_NOTICE);
+        ini_set("display_errors",0);
+       ini_set("html_errors",0);
         ini_set('log_errors',1);
-        ini_set('error_log','syslog');
 }
 // Erreur
 define ("NOERROR",0);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]