mirror of
https://github.com/docker/cli.git
synced 2026-01-23 15:21:32 +03:00
Merge pull request #11671 from noxiouz/11669-syslog-log-remove-redundant-stringcast
Syslog.Log - Remove redundant cast of msg.Line []byte to string Upstream-commit: 839350d37783bb80e58e96272905bb49b64717fc Component: engine
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user