Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

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

@wiegandf

Description

@wiegandf

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/client-go@v12.0.0+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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions