cassandra-operator icon indicating copy to clipboard operation
cassandra-operator copied to clipboard

Add better logging configurability

Open zegelin opened this issue 5 years ago • 1 comments

Improve the operator CLI interface to support enabling the K8s API client debug/trace logging. Currently this needs to be done via a custom logback.xml, which is painful when run on K8s/via Docker.

Also improve the current -v option -- the descripton doesn't match the functionality (currently always enables TRACE)

zegelin avatar Aug 09 '18 21:08 zegelin

Also add better logging for K8s ApiExceptions. They provide a lot more detail, but that info is in other fields of the exception object (response body, headers, status, etc).

TODO: can logback be configured to do this automatically, or can we write some kind of "custom formatter" for that exception type?

zegelin avatar Aug 09 '18 22:08 zegelin