Some log muting options for hue plugin?

Posted on
Sun Oct 17, 2021 11:00 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Some log muting options for hue plugin?

It is generally handy to see actions/events/response type information in the log - I use the log frequently when trying to troubleshoot things. (And don't get me started on apps that use 'warning' or 'error' level messages for test messages!)

But, I discovered an unfortunate interaction between the Indigo log and animated hue scenes... Lots, and lots, and *lots* of log messages.

I'm using the iConnectHue app to set up animations / "dynamic scenes" on a test lamp with just a couple bulbs and already I have a bit too much info. I expect my logs will flood and roll over rapidly as I add more animations - especially when I get an entertainment zone with 20 bulbs in it hooked in... I haven't checked to see what is happening with the SQL Logger plugin but I bet it is having a field day too

Code: Select all
Updated                         "hue living room" on to 84
Updated                         "new 1" on to 100
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60

Oct 17, 2021 at 9:51:47 PM
Updated                         "new 1" on to 50
Updated                         "new 1" on to 60
Updated                         "new 2" on to 72
Updated                         "hue living room" on to 72
Updated                         "new 1" on to 40
Updated                         "new 2" on to 89
Updated                         "hue living room" on to 89
Updated                         "new 1" on to 50
Updated                         "new 2" on to 84
Updated                         "hue living room" on to 84
Updated                         "new 1" on to 100
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60
Updated                         "new 2" on to 55
Updated                         "hue living room" on to 55
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60
Updated                         "new 1" on to 56
Updated                         "new 1" on to 60
Updated                         "new 2" on to 72
Updated                         "hue living room" on to 72
Updated                         "new 1" on to 40
Updated                         "new 2" on to 89
Updated                         "hue living room" on to 89
Updated                         "new 1" on to 50
Updated                         "new 2" on to 84
Updated                         "hue living room" on to 84
Updated                         "new 1" on to 100
Updated                         "new 2" on to 55
Updated                         "hue living room" on to 55
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60
Updated                         "new 1" on to 50

Oct 17, 2021 at 9:54:56 PM
Updated                         "new 1" on to 60
Updated                         "new 2" on to 72
Updated                         "hue living room" on to 72
Schedule                        Temperature Variable Sync
NEST Home                       Entryway Thermostat (Thermostat)  last_connection updated to 2021-10-18T04:54:25.126Z
NEST Home                       Entryway Thermostat (Thermostat)  ambient_temperature_f updated to 69

Oct 17, 2021 at 9:55:21 PM
Updated                         "new 1" on to 40
Updated                         "new 2" on to 89
Updated                         "hue living room" on to 89
Updated                         "new 1" on to 50
Updated                         "new 2" on to 84
Updated                         "hue living room" on to 84
Updated                         "new 1" on to 100
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60

Oct 17, 2021 at 9:56:11 PM
Updated                         "new 1" on to 60
Updated                         "new 2" on to 80
Updated                         "hue living room" on to 80
Updated                         "new 1" on to 40
Updated                         "new 2" on to 89
Updated                         "hue living room" on to 89
Updated                         "new 1" on to 50
Updated                         "new 2" on to 84
Updated                         "hue living room" on to 84
Indigo Cocoa client authenticated (10.0.4.109)
Updated                         "new 1" on to 100
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60
Updated                         "new 2" on to 55
Updated                         "hue living room" on to 55
Updated                         "new 1" on to 50
Updated                         "new 2" on to 60
Updated                         "hue living room" on to 60
Updated                         "new 1" on to 60
Updated                         "new 2" on to 72
Updated                         "hue living room" on to 72
Updated                         "new 1" on to 40
Updated                         "new 2" on to 89
Updated                         "hue living room" on to 89
Updated                         "new 1" on to 50
Updated                         "new 2" on to 84
Updated                         "hue living room" on to 84

Posted on
Sat Oct 23, 2021 6:35 pm
nsheldon offline
Posts: 2469
Joined: Aug 09, 2010
Location: CA

Re: Some log muting options for hue plugin?

Thanks for the report. I can appreciate how annoying and potentially detrimental a flood of log messages can be. Unfortunately, there's no easy way to add the ability to limit logging to the Hue Lights plugin. Adding that feature will take a fair amount of retooling since logging code is embedded in everything the plugin does and I didn't have the foresight to use any kind of limiting algorithm. That said, while I can't guarantee it'll be added, I'll keep it in mind for future versions of the plugin.

Posted on
Mon Oct 25, 2021 12:51 pm
DPattee offline
Posts: 453
Joined: Jan 14, 2004
Location: Redmond, WA

Re: Some log muting options for hue plugin?

I was on vacation over the weekend, so my logs were at their minimum (no user interaction, no manual switching on and off things, etc). And now my average log size went from ~800kb (which is when I'm home 'doing stuff') to just over 9 megs - and that's entirely due to only 3 hue bulbs that were doing some Halloween effects outside.

It might be something for Matt or Jay to chime in on rather than the individual plugin developer...

I can see how completely hiding a device from the log would make troubleshooting difficult, but at the same time, getting 80 "device 1 brightness changed to 2" event in a couple minutes isn't useful either :shock:

Posted on
Mon Oct 25, 2021 3:29 pm
matt (support) offline
Site Admin
User avatar
Posts: 21411
Joined: Jan 27, 2003
Location: Texas

Re: Some log muting options for hue plugin?

We definitely have more granular logging on our feature request / todo list, but unlikely to happen in the short/near term future given the current big features we are working on. For this particular case probably the best approach would be to cull the log files during the Halloween season. A creative shell script (run daily) could probably grep out all the lines that have the device names you aren't interested in keeping.

Image

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest