mirror of https://github.com/docker/docs.git
Merge pull request #11671 from noxiouz/11669-syslog-log-remove-redundant-stringcast
Syslog.Log - Remove redundant cast of msg.Line []byte to string
This commit is contained in:
commit
839350d377
|
@ -28,7 +28,7 @@ func New(tag string) (logger.Logger, 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" {
|
||||
return s.writer.Err(logMessage)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue