Closed lukechampine closed 9 years ago
logging? Errors plugin?
Might not be necessary to expose them to the user, but maybe there should be some data structure that holds the whole notification history
I think logging to a file would be best. When a user gets an error we want to be able to point them to a specific record of the full error message, so that we can properly diagnose it.
do we want to log all notifications, or only error notifications?
Definitely just error notifications. There's only so many times one can read "Sia client up to date!"
Maybe a sign that we don't need to display a notification about being up to date.
There's not much value in "Address created!" or "Wallet unlocked!" either. Unless you want to trace every action of the user, so as to replay precisely what they did. But logging just error messages seems pretty sane to me.
yeah that makes sense
Many of our error messages are too long, and don't fit in the notification window. We need some way of displaying or capturing these errors in full. They are important for debugging purposes.