utilities/tp-link-to-influxdb#11: Improve debug logging



Issue Information

Issue Type: issue
Status: closed
Reported By: btasker
Assigned To: btasker

Milestone: v0.25
Created: 23-Dec-23 10:30



Description

When troubleshooting issues, it'd be useful to have a more verbose debug loglevel, so that we can see what thirdparty modules are doing.



Toggle State Changes

Activity


assigned to @btasker

The most recent commit adds support for a loglevel attribute so that loglevels can be controlled via the config file:

poller:
    loglevel: "debug"

If omitted, the behaviour remains unchanged: PyP100 will be set to logging.CRITICAL and everything else will use whatever the system wide config is.

Changeset is in PR 7

verified

mentioned in commit github-mirror/tplink_to_influxdb@1f8d7b294a68ac3836971deada1af23469ad5acf

Commit: github-mirror/tplink_to_influxdb@1f8d7b294a68ac3836971deada1af23469ad5acf 
Author: B Tasker                            
                            
Date: 2023-12-23T10:37:29.000+00:00 

Message

feat: add additional debug logging (utilities/tp-link-to-influxdb#11)

+8 -4 (12 lines changed)
verified

mentioned in commit github-mirror/tplink_to_influxdb@fafbfd5de03d6418c96488931de1ac7cbad01a26

Commit: github-mirror/tplink_to_influxdb@fafbfd5de03d6418c96488931de1ac7cbad01a26 
Author: B Tasker                            
                            
Date: 2023-12-23T11:42:48.000+00:00 

Message

feat: implement support for setting loglevel via config (utilities/tp-link-to-influxdb#11)

This adds support for a loglevel attribute to the poller object.

When omitted, the default behaviour remains unchanged: PyP100 will be set to logging.CRITICAL and everything else will use whatever the system says.

+56 -7 (63 lines changed)