Skip to content
Snippets Groups Projects
Commit e8b38183 authored by haozibi's avatar haozibi Committed by Alex Ellis
Browse files

chore: add log for easy debug


Signed-off-by: default avatarhaozibi <haozibi@foxmail.com>
parent 48148227
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment