eventrouter icon indicating copy to clipboard operation
eventrouter copied to clipboard

Logs are still written to file system (with logtostderr=true)

Open wiegandf opened this issue 4 years ago • 0 comments

With logstderr set to true, there will still be some logs written to the filesystem. Eventrouter glog are correctly using stderr. I guess it is a dependency that writes the logs to /tmp folder:

W0625 06:04:16.385842       1 reflector.go:302] pkg/mod/k8s.io/[email protected]+incompatible/tools/cache/reflector.go:98: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.
log: exiting because of error: log: cannot create log: open /tmp/eventrouter.eventrouter-6b776f4cb9-jdwr4.unknownuser.log.WARNING.20200625-060416.1: not a directory

The above error happens in a custom distroless image. But I also verified the logs appear with the default eventrouter. Though, they can be written because /tmp folder exists.

wiegandf avatar Jun 25 '20 06:06 wiegandf