-
-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ability to print full namespace of module for CallsiteParameterAdder #492
Comments
Those values and behavior are based on stdlib logging – how do they handle it? |
poorly. zero tolerance for deviation or extension. I have a patch for this (new |
I couldn't find an easy/transportable way to add it as a |
@hynek I'm struggling with the same problem of logging neat path to module and have custom processor which doesn't use frame. I suggest to consider the following handler of def _get_callsite_module(module: str, frame: FrameType) -> Any:
return module What do you think? |
When using
CallsiteParameter.MODULE
inCallsiteParameterAdder
, it's a bit too vague for my tastes - for example, a module namedconfig
has no meaning unless I know what package it's referring to. For example, I may have a module calledfoo.bar.config
and another package could have a module calledbaz.buz.config
, and it would not be possible to tell the difference with that value currently.I know that there's
CallsiteParameter.PATHNAME
, but that's overly verbose - although I guess I could transform it to be something more palatable... At the end of the day though, it would be nice if there was aCallsiteParameter
that would just print outfoo.bar.config
.The text was updated successfully, but these errors were encountered: