cassandra-operator
cassandra-operator copied to clipboard
Add better logging configurability
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)
Also add better logging for K8s ApiException
s. 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?