Skip to content

Commit 4467aad

Browse files
committed
Merge pull request #4330 from krancour/logger-underscores
fix(logger): allow underscores in container names
2 parents b25f24b + 9a03722 commit 4467aad

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
@@ -50,7 +50,7 @@ func fileExists(path string) (bool, error) {
5050
}
5151

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

0 commit comments

Comments
 (0)