logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ihabu...@apache.org
Subject [41/43] git commit: Made sure trigger_error always throws a warning, not error
Date Thu, 28 Nov 2013 16:04:11 GMT
Made sure trigger_error always throws a warning, not error

Signed-off-by: Ivan Habunek <ivan.habunek@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/logging-log4php/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4php/commit/b178d461
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4php/tree/b178d461
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4php/diff/b178d461

Branch: refs/heads/v3
Commit: b178d4612df665d7488b8be4916d9801e7f64bdf
Parents: dfa2132
Author: Ivan Habunek <ivan.habunek@gmail.com>
Authored: Thu Nov 28 15:36:34 2013 +0100
Committer: Ivan Habunek <ivan.habunek@gmail.com>
Committed: Thu Nov 28 15:36:34 2013 +0100

----------------------------------------------------------------------
 src/Configuration/adapters/IniAdapter.php | 2 +-
 src/Renderers/RendererMap.php             | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/b178d461/src/Configuration/adapters/IniAdapter.php
----------------------------------------------------------------------
diff --git a/src/Configuration/adapters/IniAdapter.php b/src/Configuration/adapters/IniAdapter.php
index fcc50e2..93a71d4 100644
--- a/src/Configuration/adapters/IniAdapter.php
+++ b/src/Configuration/adapters/IniAdapter.php
@@ -272,7 +272,7 @@ class IniAdapter implements AdapterInterface
             }
         }
 
-        trigger_error("log4php: Don't know how to parse the following line: \"$key = $value\".
Skipping.");
+        trigger_error("log4php: Don't know how to parse the following line: \"$key = $value\".
Skipping.", E_USER_WARNING);
     }
 
     /**

http://git-wip-us.apache.org/repos/asf/logging-log4php/blob/b178d461/src/Renderers/RendererMap.php
----------------------------------------------------------------------
diff --git a/src/Renderers/RendererMap.php b/src/Renderers/RendererMap.php
index 74e5977..c3cec35 100644
--- a/src/Renderers/RendererMap.php
+++ b/src/Renderers/RendererMap.php
@@ -69,14 +69,14 @@ class RendererMap
         }
 
         if (!isset($renderer)) {
-            trigger_error("log4php: Failed adding renderer. Rendering class [$renderingClass]
not found.");
+            trigger_error("log4php: Failed adding renderer. Rendering class [$renderingClass]
not found.", E_USER_WARNING);
 
             return;
         }
 
         // Check the class implements the right interface
         if (!($renderer instanceof RendererInterface)) {
-            trigger_error("log4php: Failed adding renderer. Rendering class [$renderingClass]
does not implement the RendererInterface interface.");
+            trigger_error("log4php: Failed adding renderer. Rendering class [$renderingClass]
does not implement the RendererInterface interface.", E_USER_WARNING);
 
             return;
         }
@@ -101,7 +101,7 @@ class RendererMap
     {
         // Check the class exists
         if (!class_exists($renderingClass)) {
-            trigger_error("log4php: Failed setting default renderer. Rendering class [$renderingClass]
not found.");
+            trigger_error("log4php: Failed setting default renderer. Rendering class [$renderingClass]
not found.", E_USER_WARNING);
 
             return;
         }
@@ -111,7 +111,7 @@ class RendererMap
 
         // Check the class implements the right interface
         if (!($renderer instanceof RendererInterface)) {
-            trigger_error("log4php: Failed setting default renderer. Rendering class [$renderingClass]
does not implement the RendererInterface interface.");
+            trigger_error("log4php: Failed setting default renderer. Rendering class [$renderingClass]
does not implement the RendererInterface interface.", E_USER_WARNING);
 
             return;
         }


Mime
View raw message