Browse Source

Fix logging issue when using the laravel.log event.

Taylor Otwell 12 years ago
parent
commit
d64d6c9092
1 changed files with 2 additions and 8 deletions
  1. 2 8
      laravel/log.php

+ 2 - 8
laravel/log.php

@@ -49,15 +49,9 @@ class Log {
 			Event::fire('laravel.log', array($type, $message));
 			Event::fire('laravel.log', array($type, $message));
 		}
 		}
 
 
-		// If there aren't listeners on the log event, we'll just write to the
-		// log files using the default conventions, writing one log file per
-		// day so the files don't get too crowded.
-		else
-		{
-			$message = static::format($type, $message);
+		$message = static::format($type, $message);
 
 
-			File::append(path('storage').'logs/'.date('Y-m-d').'.log', $message);
-		}
+		File::append(path('storage').'logs/'.date('Y-m-d').'.log', $message);
 	}
 	}
 
 
 	/**
 	/**