Commit 41df0b0e authored by Eteri's avatar Eteri

fluentbit-wendelin: change return message

parent 6a92aaf9
......@@ -82,14 +82,14 @@ func FLBPluginFlush(data unsafe.Pointer, length C.int, tag *C.char) int {
resp_status, err := strconv.Atoi(status_code[0])
if err != nil {
fmt.Println(err)
return output.FLB_RETRY
return output.FLB_ERROR
}
fmt.Println(resp.Status)
fmt.Println(err)
if resp_status < 200 && resp_status > 205 {
return output.FLB_RETRY
return output.FLB_ERROR
}
defer resp.Body.Close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment