We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7726dee commit 8736a56Copy full SHA for 8736a56
1 file changed
pytools/__init__.py
@@ -2872,10 +2872,15 @@ def __init__(self,
2872
self.long_threshold_seconds = long_threshold_seconds
2873
2874
def __call__(self, wrapped: Callable[P, R]) -> Callable[P, R]:
2875
+ if self.description:
2876
+ description = f"{wrapped.__qualname__} ({self.description})"
2877
+ else:
2878
+ description = wrapped.__qualname__
2879
+
2880
def wrapper(*args: P.args, **kwargs: P.kwargs) -> R:
2881
with ProcessLogger(
2882
self.logger,
- self.description or wrapped.__name__,
2883
+ description,
2884
long_threshold_seconds=self.long_threshold_seconds):
2885
return wrapped(*args, **kwargs)
2886
0 commit comments