Skip to content

Commit d64d6c9

Browse files
committed
Fix logging issue when using the laravel.log event.
1 parent c2a255c commit d64d6c9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

laravel/log.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,9 @@ public static function write($type, $message)
4949
Event::fire('laravel.log', array($type, $message));
5050
}
5151

52-
// If there aren't listeners on the log event, we'll just write to the
53-
// log files using the default conventions, writing one log file per
54-
// day so the files don't get too crowded.
55-
else
56-
{
57-
$message = static::format($type, $message);
52+
$message = static::format($type, $message);
5853

59-
File::append(path('storage').'logs/'.date('Y-m-d').'.log', $message);
60-
}
54+
File::append(path('storage').'logs/'.date('Y-m-d').'.log', $message);
6155
}
6256

6357
/**

0 commit comments

Comments
 (0)