thompsonate / Shifty

☀️ A macOS menu bar app that gives you more control over Night Shift.
http://shifty.natethompson.io
GNU General Public License v3.0
1.24k stars 33 forks source link

Excessive logging? #96

Open jeff-h opened 4 years ago

jeff-h commented 4 years ago

Shifty generates just over 16,000 log entries per day, for me at least. It's pretty much just the following, over and over:

[27/01/2020 at 3:13:46 PM]: sunset: 2020-01-27 08:07:28 +0000
[27/01/2020 at 3:13:46 PM]: sunrise: 2020-01-27 17:30:37 +0000
[27/01/2020 at 3:13:46 PM]: scheduled state: false
[27/01/2020 at 3:13:47 PM]: Responded to event: nightShiftDisableRuleDeactivated

I am wondering if it would be possible to reduce this? Perhaps it could be changed to only log when the content of the four lines changes? I'm not entirely certain how you'd do such a thing though :)

choco commented 4 years ago

Yeah I agree. We should probably put logging behind a flag so it can just be turned on when the user encounters a bug and we require additional info.

thompsonate commented 4 years ago

Agreed @choco. I'll plan on adding a flag in the next update.

16,000 lines per day is surprising though. At some point I'll try to look into how that can be reduced.