We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da17824 commit 89c1f41Copy full SHA for 89c1f41
1 file changed
logger/syslogd/syslogd.go
@@ -1,15 +1,15 @@
1
package main
2
3
import (
4
- "errors"
5
"fmt"
6
- "github.com/deis/deis/logger/syslog"
7
"io"
8
"os"
9
"os/signal"
10
"path"
11
"regexp"
12
"syscall"
+
+ "github.com/deis/deis/logger/syslog"
13
)
14
15
const logRoot = "/var/log/deis"
@@ -48,7 +48,7 @@ func getLogFile(m *syslog.Message) (io.Writer, error) {
48
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9\.]+\].*`)
49
match := r.FindStringSubmatch(m.String())
50
if match == nil {
51
- return nil, errors.New("Could not find app name in message")
+ return nil, fmt.Errorf("Could not find app name in message", m.String())
52
}
53
appName := match[1]
54
filePath := path.Join(logRoot, appName+".log")
0 commit comments