-
Notifications
You must be signed in to change notification settings - Fork 93
Added error log tab in debug window #466
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
Conversation
…tries for errors and loads more errors as they come in while debugwindow is open
…og entries since the last time Debug Window was opened
@aguycalled @craigmacgregor This PR is ready for review, I have added the new |
I'm not sure if filtering which entries should go to the error log by trying to find a string ('ERROR') is the right approach. Using error() vs LogPrint* to decide on where should it be logged looks like a more efficient, elegant and future-prone solution. Thoughts? |
Agreed, I will make the change now. |
I've pushed the changes, waiting on travis 😄 |
…error( to insert in error.log
Is there some way to generate errors which will display in the error tab so i can test this is working? |
I just add a error("test") call to the init, compiled then checked the error log :D |
@aguycalled were you able to test a node running this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested debian
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when i start with a blank data directory immediately errors are generated when it can't open the peers.dat and banlist.dat files and i see them in the debug console tab.
I have tested this on ubuntu and it works for me there.
approved, waiting for travis to complete then will merge |
Looks like changes to QT version on master branch break this PR, I will fix the branch now |
@proletesseract I've made the changes to fix the QT dependency issue, Build should pass now 👍 |
@proletesseract tests passed, merging 👍 |
Added error log tab in debug window that parses last 500 debug.log entries for errors and loads more errors as they come in while debugwindow is open