mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixes #41010 skip empty lines
Signed-off-by: Wang Yumu <37442693@qq.com>
This commit is contained in:
parent
5ffd677824
commit
96556854a7
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue