feat(common): centralized debug module for DAW projects #96
Labels
No labels
coordination/cross-repo
coordination/needed
effort
large
effort
medium
effort
small
meta/duplicate
meta/planning
meta/wontfix
priority
high
priority
low
priority
medium
session
blocker
session
handover
session
next
status
blocked
status
done
status
in-progress
status
review
status
to-go
type
admin
type/architecture
type
bug
type
config
type
deployment
type
docs
type/documentation
type
enhancement
type
feature
type
handover
type
infrastructure
type
installation
type
maintenance
type
migration
type
research
type
security
type/task
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DAW/fragjan#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Introduce a centralized debug module for DAW projects that replaces
ad-hoc --debug flag handling with a unified API.
Requirements
Open questions
See also
Decision: no separate debug module
DEBUG is a level in daw.common.log -- no separate module needed.
The open questions from this issue are resolved as follows:
Relation to logging module: DEBUG is a level (DEBUG/INFO/WARN/ERROR/FAULT),
not a separate module. daw.common.log handles all levels uniformly.
Debug output target: Configured via [logging.debug] in fragjan.conf.
Separate log file recommended -- debug volume is too high for UI output.
How to pass debug state through call chain: Via ctx. The --debug flag
sets a value in ctx at startup. No global, no singleton.
Integration with --debug flag: --debug activates the DEBUG level in
adapters/log. Entries below the configured level are filtered per target.
Closing in favor of DAW/fragjan#95 (daw.common.log) and DAW/fragjan#97 (adapters/log).
See also: DAW/fragjan#117 (daw.log.file module).