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>
Upstream-commit: f2c7b4d7437443d469b2247362835af02ccef385
Component: engine
This commit is contained in:
Anton Tiurin
2015-03-24 01:32:33 +03:00
parent f673778d3a
commit 59aa846db8

View File

@ -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)
}