zalando-incubator / kopf

A Python framework to write Kubernetes operators in just few lines of code.
https://kopf.readthedocs.io
MIT License
969 stars 89 forks source link

Improving logging when loading modules #348

Open mnaser opened 4 years ago

mnaser commented 4 years ago

First of all, excellent work on the operator, we're moving away from kubebuilder and adopting it here:

https://opendev.org/vexxhost/openstack-operator

Slowly but surely, the codebase is shaping up. :)

Problem

It's simple, the logs when loading it via a module don't give you enough information about the module which the function is called from, for example, we frequently call the 'create' function as create and so looking over the logs, we can't tell which operator was the one that did the create.

Proposal

It would be nice if we had a prefixed path, something like:

openstack_operator.memcached.create

Or something along those lines.

Checklist