Skip to content

Commit 2b514e0

Browse files
authored
Downgrade log level for the 'unexpected URL path' error so that it doesn't get sent to Sentry anymore (#212)
1 parent a4e0de3 commit 2b514e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubservice/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func main() {
218218
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
219219
// Only respond to requests for which the path *exactly* matches "/".
220220
if r.URL.Path != "/" {
221-
logrus.WithField("path", r.URL.Path).Error("Got unexpected URL path")
221+
logrus.WithField("path", r.URL.Path).Warn("Got unexpected URL path")
222222
http.NotFound(w, r)
223223
return
224224
}

0 commit comments

Comments
 (0)