diff --git a/prog/main.go b/prog/main.go index 45857d83fa..c1578ad83f 100644 --- a/prog/main.go +++ b/prog/main.go @@ -41,7 +41,7 @@ var ( } colonFinder = regexp.MustCompile(`[^\\](:)`) unescapeBackslashes = regexp.MustCompile(`\\(.)`) - elideURLCredentials = regexp.MustCompile(`//.+:.+@`) + elideURLCredentials = regexp.MustCompile(`//.+@`) ) type prefixFormatter struct { diff --git a/prog/main_test.go b/prog/main_test.go index ca238c5073..3e1728b9c7 100644 --- a/prog/main_test.go +++ b/prog/main_test.go @@ -36,6 +36,7 @@ func TestLogCensoredArgs(t *testing.T) { "-probe.kubernetes.token=secret", "http://secret:secret@frontend.dev.weave.works:80", "https://secret:secret@cloud.weave.works:443", + "https://secret@cloud.weave.works", } flag.CommandLine.Parse(args)