Skip to content
Permalink
Browse files

chore: add log for easy debug

Signed-off-by: haozibi <haozibi@foxmail.com>
  • Loading branch information...
haozibi authored and alexellis committed Jul 10, 2019
1 parent 4814822 commit e8b3818300ccedcb47099b3cfe2513c716120fd9
Showing with 3 additions and 0 deletions.
  1. +3 −0 watchdog/handler.go
@@ -94,6 +94,9 @@ func pipeRequest(config *WatchdogConfig, w http.ResponseWriter, r *http.Request,
var buildInputErr error
requestBody, buildInputErr = buildFunctionInput(config, r)
if buildInputErr != nil {
if config.writeDebug == true {
log.Printf("Error=%s, ReadLen=%d\n", buildInputErr.Error(), len(requestBody))
}
ri.headerWritten = true
w.WriteHeader(http.StatusBadRequest)
// I.e. "exit code 1"

0 comments on commit e8b3818

Please sign in to comment.
You can’t perform that action at this time.