From ced25d5c81ee564f649b921eae26bcdd03f89a0d Mon Sep 17 00:00:00 2001 From: Jun Sakata Date: Fri, 26 Apr 2024 17:18:12 +0900 Subject: [PATCH] fix error handling --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 7848286..aec4137 100644 --- a/main.go +++ b/main.go @@ -100,7 +100,9 @@ func handlePubSubMessage(w http.ResponseWriter, r *http.Request) { } err = f.ProcessGCREvent(ctx, event) - log.Printf("process: %s", err) + if err != nil { + log.Printf("faild to process: %s", err) + } res := &Response{ Status: http.StatusOK,