mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Syslog.Log - Remove redundant cast of msg.Line []byte to string as
it's a fmt.Sprintf responsibility. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
This commit is contained in:
parent
bcb369af11
commit
f2c7b4d743
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ func New(tag string) (logger.Logger, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *Syslog) Log(msg *logger.Message) error {
|
func (s *Syslog) Log(msg *logger.Message) error {
|
||||||
logMessage := fmt.Sprintf("%s: %s", s.tag, string(msg.Line))
|
logMessage := fmt.Sprintf("%s: %s", s.tag, msg.Line)
|
||||||
if msg.Source == "stderr" {
|
if msg.Source == "stderr" {
|
||||||
return s.writer.Err(logMessage)
|
return s.writer.Err(logMessage)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue