Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugging Mode with all / more details #54

Closed
vschi opened this issue Mar 25, 2022 · 7 comments
Closed

Debugging Mode with all / more details #54

vschi opened this issue Mar 25, 2022 · 7 comments

Comments

@vschi
Copy link

vschi commented Mar 25, 2022

While debugging another issue of your application I wanted to raise 2 feature request.

  1. The application had in version 0.3.4 more detailed logs presented in the console. I expect this happens because of debug=2 that was set. This is not possible anymore in version 1.0.0 as debug has a value of 0 or 1. It would be great to see more details in the console by using debug = 2 and uncomment all existing debug outputs in the code.
  2. There is no debug for the update of data in the sqlite. For example if a value is updated in the frontend for an album. Something happens in the backend but no output in the debug.
@thawn
Copy link
Owner

thawn commented Mar 25, 2022

Thank you very much for your feature request. I think these are very good suggestions. I suggest to (re) implement a way to enable debugging via command line arguments. E.g. ttmp32gme -debug=2

Also the debugging for database requests is a good idea.

Unfortunately, I cannot make any promises as to when I will have time to work on this. If you need this urgently, and have the time, feel free to take a shot at this yourself - merge requests are always welcome ;-)

Cheers,

Thawn

@vschi
Copy link
Author

vschi commented Mar 25, 2022

I guess if somebody needs debug data, than he needs as much as possible :)
So ttmp32gme -debug should use debug=2 and not differentiate between those debug modes.

@thawn
Copy link
Owner

thawn commented Mar 25, 2022

Actually, when I tried to debug myself, at some point, it was difficult to sift through all the data. Therefore, I started using different debug levels. This is a well known approach used for logging. Apparently, the -debug flag still works. did you try if -debug=2 gives you more extensive debug messages?

@vschi
Copy link
Author

vschi commented Mar 26, 2022

-debug=2 is not working as the debug parameter is not accepting values.

@thawn
Copy link
Owner

thawn commented Mar 28, 2022

o.k. thanks, I will try to implement that.

thawn added a commit that referenced this issue Apr 10, 2022
fixes issue #54
removed deprecated directory command line argument
@thawn
Copy link
Owner

thawn commented Apr 10, 2022

In the latest development version, you can now set the debug level via the command line argument -d=3 or -debug=3

@thawn thawn closed this as completed Apr 10, 2022
@thawn
Copy link
Owner

thawn commented Apr 10, 2022

the command line parameter -d=3 should work in v1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants