LoggerLoggingEvent: Fixed getMessage() to return the actual message, instead of the...
authorIvan Habunek <ihabunek@apache.org>
Sat, 1 Sep 2012 11:20:43 +0000 (11:20 +0000)
committerIvan Habunek <ihabunek@apache.org>
Sat, 1 Sep 2012 11:20:43 +0000 (11:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/logging/log4php/trunk@1379741 13f79535-47bb-0310-9956-ffa450edef68

src/main/php/LoggerLoggingEvent.php

index 85a2eb5..3c0e917 100644 (file)
@@ -222,19 +222,10 @@ class LoggerLoggingEvent {
 
        /**
         * Return the message for this logging event.
-        *
-        * <p>Before serialization, the returned object is the message
-        * passed by the user to generate the logging event. After
-        * serialization, the returned value equals the String form of the
-        * message possibly after object rendering.
         * @return mixed
         */
        public function getMessage() {
-               if($this->message !== null) {
-                       return $this->message;
-               } else {
-                       return $this->getRenderedMessage();
-               }
+               return $this->message;
        }
 
        /**