mailchuck / PyBitmessage

This repository has been discontinued, please use the official PyBitmessage repository
https://github.com/Bitmessage/PyBitmessage
MIT License
28 stars 4 forks source link

UI for logging configuration #193

Open ghost opened 8 years ago

ghost commented 8 years ago

Like Tor's

AvoidDiskWrites 0|1 If non-zero, try to write to disk less frequently than we would otherwise. This is useful when running on flash memory or other media that support only a limited number of writes. (Default: 0)

PeterSurda commented 8 years ago

debug.log can be disabled, see: https://bitmessage.org/forum/index.php/topic,4820.msg11163.html#msg11163

As to the other types of writes, I'm inclined to leave it as it is. keys.dat is only modified if you change settings, and delaying writes to the sqlite database can cause unforeseen problems. This is better addressed at firmware/filesystem level.

ghost commented 8 years ago

debug.log can be disabled, see: https://bitmessage.org/forum/index.php/topic,4820.msg11163.html#msg11163

There's no syslog in Windows. How can I stop writing to debug.log? Why there is no "[X] Disable Logging" option in settings?

PeterSurda commented 8 years ago

There are two examples in the linked post. One turns logging off, one redirects it to syslog. They both also work on Windows. But maybe there can be a new tab in the settings where you can configure logging in the GUI a bit easier. Also perhaps the default logging with having debugging enabled isn't the best idea.