Skip to content

Commit 19a26f1

Browse files
committed
Merge pull request #935 from deis/app-name-regexes
fix(logger): allow digits in app name when parsing log file
2 parents 1e717e5 + 23f0f0c commit 19a26f1

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
@@ -45,7 +45,7 @@ func fileExists(path string) (bool, error) {
4545
}
4646

4747
func getLogFile(m *syslog.Message) (io.Writer, error) {
48-
r := regexp.MustCompile(`^.* ([a-z-]+)\[[a-z0-9\.]+\].*`)
48+
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9\.]+\].*`)
4949
match := r.FindStringSubmatch(m.String())
5050
if match == nil {
5151
return nil, errors.New("Could not find app name in message")

0 commit comments

Comments
 (0)