Skip to content

Commit

Permalink
fix(logger): allow underscores in container names
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent Rancourt committed Aug 25, 2015
1 parent 30fefce commit 9a03722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger/syslogd/syslogd.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func fileExists(path string) (bool, error) {
}

func getLogFile(message string) (io.Writer, error) {
r := regexp.MustCompile(`^.* ([-a-z0-9]+)\[[a-z0-9-_\.]+\].*`)
r := regexp.MustCompile(`^.* ([-_a-z0-9]+)\[[a-z0-9-_\.]+\].*`)
match := r.FindStringSubmatch(message)
if match == nil {
return nil, fmt.Errorf("Could not find app name in message: %s", message)
Expand Down

0 comments on commit 9a03722

Please sign in to comment.