gawindx / WinNUT-Client

This is a NUT windows client for monitoring your ups hooked up to your favorite linux server.
GNU General Public License v3.0
395 stars 70 forks source link

Enable always writing log messages to debug window & other small changes #51

Closed gbakeman closed 3 years ago

gbakeman commented 3 years ago

Here is another small, but potentially important pull request for you. I've modified the Logging logic so log messages will always be written to the debugger messages window when debugging. This will hopefully help with future debugging. I've also made a small tweak to logging code and added a comment for clarity.

I'll hopefully have a bigger pull request for you soon; I'm working on adding some more (clear) messages for when an error occurs when requesting information from the NUT server.

gawindx commented 3 years ago

it seems logical to me so I validate.

I did not know the 'AndAlso', I would go to bed less stupid tonight .... and it's cleaner to read

gbakeman commented 3 years ago

I'm learning new things every day, too. :) Hopefully I will have a large push coming to you soon.