Closed thomasmburke closed 1 month ago
agreed, seems like the current condition is not enough:
https://github.com/gchux/cloud-run-tcpdump/blob/v1.0.0-rc55/tcpdumpw/main.go#L324-L325
the correct one should be using isGAE
so it should be something like this:
if isGAE && writerErr != nil
this one along side #7 will be addressed with release v1.0.0 when we go out of release candidate cycles.
fix: https://github.com/gchux/cloud-run-tcpdump/blob/bug/fix/tcpdumpw/main.go#L333-L335
rationale: if there is an error, but isGAE==false
then the error must be gaeDisabledErr
so it is safe to skip the error message
jsondump GAE json writer creation failed:
error shouldn't be logged when sidecar is run on Cloud RunIt seems we just need to omit this log if
gaeDisabledErr
is thewriterErr