Skip to content

Commit d744657

Browse files
author
Matthew Fisher
committed
style(logger): go vet
1 parent ebeab96 commit d744657

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

logger/syslogd/syslogd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func getLogFile(m *syslog.Message) (io.Writer, error) {
4949
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9-_\.]+\].*`)
5050
match := r.FindStringSubmatch(m.String())
5151
if match == nil {
52-
return nil, fmt.Errorf("Could not find app name in message", m.String())
52+
return nil, fmt.Errorf("Could not find app name in message: %s", m)
5353
}
5454
appName := match[1]
5555
filePath := path.Join(logRoot, appName+".log")

0 commit comments

Comments
 (0)