Преглед на файлове

Downgrade error to warning

tags/v0.3.2
Russ Garrett преди 5 години
родител
ревизия
b28a3238fd
No account linked to committer's email address
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      httplistener/github.go

+ 2
- 1
httplistener/github.go Целия файл

@@ -34,7 +34,8 @@ func (hl *HTTPListener) githubHandler(w http.ResponseWriter, request *http.Reque
34 34
 		github.PullRequestEvent)
35 35
 
36 36
 	if err != nil {
37
-		log.Errorf("Error parsing github webhook: %s", err)
37
+		// This usually happens because we've received an event we don't need to handle.
38
+		log.Warnf("Error parsing github webhook: %s", err)
38 39
 		return
39 40
 	}
40 41
 

Loading…
Отказ
Запис