You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ih...@apache.org on 2012/09/01 13:20:43 UTC

svn commit: r1379741 - /logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php

Author: ihabunek
Date: Sat Sep  1 11:20:43 2012
New Revision: 1379741

URL: http://svn.apache.org/viewvc?rev=1379741&view=rev
Log:
LoggerLoggingEvent: Fixed getMessage() to return the actual message, instead of the rendered message. There's getRenderedMessage() for that.

Modified:
    logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php

Modified: logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php
URL: http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php?rev=1379741&r1=1379740&r2=1379741&view=diff
==============================================================================
--- logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php (original)
+++ logging/log4php/trunk/src/main/php/LoggerLoggingEvent.php Sat Sep  1 11:20:43 2012
@@ -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;
 	}
 
 	/**