mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
[GH-ISSUE #118] Implement logging #68
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#68
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?
Originally created by @Valansch on GitHub (Oct 28, 2019).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/118
I found a few bugs, but i find it hard reporting them, since i don't get any log output whatsoever.
For example with #110 i'm pretty sure it's not a spotify-tui issue, but I have no idea what happend, since I didn't get any output so my only path to resolving this issue is to go straight up into developement and debug it myself. But at this time i'm not in the position to debug any Rust application.
For a hard crash (Exit code 1) i would expect at least an exception message in console or system log.
Since better logging => Better issues: Please help me help you.
It would also be nice to have a
--verboseparameter.Since i didn't find logging in the Roadmap, this issue exists.
@Rigellute commented on GitHub (Oct 28, 2019):
This PR https://github.com/Rigellute/spotify-tui/pull/111 recently adds better backtraces, but only in developer mode. Will look into enabling this via the flag.
@sputnick1124 commented on GitHub (Nov 6, 2019):
I think this would be a good thing to add. Just to spark the conversation, I think we should address a few questions and come to some sort of consensus on what the feature should actually look like before diving in and choosing a logging backend crate.
My initial questions (in no particular order):
My thoughts:
error!only) by default in release builds@Rigellute commented on GitHub (Nov 6, 2019):
Currently we have a panic hook that is enabled only for debug builds (introduced in #111), which at least prints the error to the console.
This uses the
backtracecrate.I think we could probably leave this on for release builds too now.