Closed aerusso closed 5 years ago
hm... I sort of hesitate to add a random printout for a random need. We need a better motivation than it might be useful, for sure.
Could we possibly just add a LOG_INFO instead, which is visible in the default setup?
So, I added this because I specifically like having a log of the IPs that are assigned to me, and when they change. In particular, you can be confident of how frequently your address is changing, and if you might need to increase your timer frequency.
I don't want to clutter my logs with more stuff (esp. at INFO verbosity). I originally implemented this with just a WARN level verbosity, but it's not "really" a warning, but thought the community might appreciate a flag.
There is a complexity price on a adding an option for both users and maintainers. Frankly, the benefits of this "irregular" printout does not justify the costs in this case.
Thanks for the PR. Might add an a info log statement later
It may be useful to have an option to always track changes to the updated IP address. This introduces such a configuration file and command line option,
log-ip
and--log-ip
, independent of the current logging framework.