The bound `StackLevelAdapter.<name>` emit method captured its level via a `_level: int = value` default-arg at bind time, so a later `add_log_level(name, <new-value>)` re-registration left the method emitting at the *stale* original level. Read `CUSTOM_LEVELS[name_up]` at call time instead — the method binds once but always tracks the current registered value. Also, - correct the `add_log_level()` docstring's "Idempotent" note to describe the call-time value lookup (was the misleading "no-op-ish refresh (won't clobber an already-bound method)"). - sync stale `_reap.py` doc/comment markers `tractor[` -> `_subactor[` to match the actual `_proctitle._def_prefix` proc-title prefix (doc-only drift; the code markers already referenced `_proctitle._def_prefix`). Review: PR #467 (copilot-pull-request-reviewer) https://github.com/goodboy/tractor/pull/467#pullrequestreview-4562945515 (this patch was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _reap.py | ||
| addr.py | ||
| fault_simulation.py | ||
| pytest.py | ||
| samples.py | ||
| trace.py | ||