mirror of
https://github.com/moby/moby.git
synced 2026-08-05 23:51:18 +00:00
Merge pull request #41075 from wangyumu/fix-syslog-empty-lines
Fixes #41010 skip empty lines
This commit is contained in:
@@ -132,6 +132,10 @@ func New(info logger.Info) (logger.Logger, error) {
|
||||
}
|
||||
|
||||
func (s *syslogger) Log(msg *logger.Message) error {
|
||||
if len(msg.Line) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
line := string(msg.Line)
|
||||
source := msg.Source
|
||||
logger.PutMessage(msg)
|
||||
|
||||
Reference in New Issue
Block a user