dpy_logger/ledger.md
disqualifier 3e9b05a8e8 fix: restore task() actor kwarg (accept-and-ignore) for caller compatibility
the original task() accepted an actor kwarg and ignored it (task actions are always attributed to SYSTEM/TASK); the rewrite dropped the param, so live callers passing task(..., actor=...) hit a TypeError. added actor=None back, accept-and-ignore, behavior unchanged. bump to v0.1.1. (feed() stays out of the base by design — consumers subclass.)

Signed-off-by: disqualifier <dev@disqualifier.me>
2026-06-29 03:18:13 -04:00

1.0 KiB

dpy_logger — ledger

v0.1.1

  • fidelity fix (HIGH): restored the actor kwarg on task() (accept-and-ignore). The original accepted actor and ignored it (task actions are always attributed to SYSTEM/TASK); the rewrite dropped the param, so live callers passing task(..., actor=...) hit a TypeError. Param is back, behavior unchanged.
  • guild-id comparison fix: _get_channel compares by .id so an uninitialized int guild routes to the constructed channel instead of falling through to settings.
  • docstring/README error-contract accuracy: resolution raises from initialize() (type may be ValueError or an underlying discord exception); per-call resolution + send failures are swallowed to the stdlib fallback.

Note: feed() is intentionally NOT on the base class — consumers subclass to add it (see README "Adding a log type").

v0.1.0

  • initial: leveled discord channel logger (debug/info/success/fail/task/critical), dual-sink (channel + stdlib), embed_builder hook, dynamic per-guild routing.