Github Mirror / telegraf-plugins: 1f40372a




Take debug state from env var DEBUG

Take debug state from env var DEBUG

Commit 1f40372a.

Authored 2023-06-01T08:20:25.000+01:00 by B Tasker in project Github Mirror / telegraf-plugins

+2 lines -2 lines

Commit Signature

Changes

diff --git a/soliscloud/soliscloud.py b/soliscloud/soliscloud.py
--- a/soliscloud/soliscloud.py
+++ b/soliscloud/soliscloud.py
# @@ -609,8 +609,8 @@ def extractSiteStats(site, config):
#
#
# if __name__ == "__main__":
# - # TODO: Take from environment
# - DEBUG = False
# + # Are we running in debug mode?
# + DEBUG = os.getenv("DEBUG", "false").lower() == "true"
#
# # TODO: This should eventually be false
# # but having mock responses is the only way to proceed until I've got
#