Skip to content

Commit 89c1f41

Browse files
author
Matthew Fisher
committed
fix(logger): add more verbose message
1 parent da17824 commit 89c1f41

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

logger/syslogd/syslogd.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package main
22

33
import (
4-
"errors"
54
"fmt"
6-
"github.com/deis/deis/logger/syslog"
75
"io"
86
"os"
97
"os/signal"
108
"path"
119
"regexp"
1210
"syscall"
11+
12+
"github.com/deis/deis/logger/syslog"
1313
)
1414

1515
const logRoot = "/var/log/deis"
@@ -48,7 +48,7 @@ func getLogFile(m *syslog.Message) (io.Writer, error) {
4848
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9\.]+\].*`)
4949
match := r.FindStringSubmatch(m.String())
5050
if match == nil {
51-
return nil, errors.New("Could not find app name in message")
51+
return nil, fmt.Errorf("Could not find app name in message", m.String())
5252
}
5353
appName := match[1]
5454
filePath := path.Join(logRoot, appName+".log")

0 commit comments

Comments
 (0)