Forcing debug messages on.

This commit is contained in:
Keir Rice
2022-09-25 19:20:05 +13:00
parent 89ab7d6041
commit 3491f07e38

View File

@@ -1153,11 +1153,11 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP
stdout = Popen(cmd, stdout=PIPE, stderr=PIPE, universal_newlines=True)
output, errors = stdout.communicate()
if self._settings.get(["debug_temperature_log"]) is True:
if True or self._settings.get(["debug_temperature_log"]) is True:
if len(errors) > 0:
self._logger.error("SHTC3 error: %s", errors)
else:
self._logger.debug("SHTC3 result: %s", output)
self._logger.info("SHTC3 result: %s", output)
temp, hum = output.split("|")
return self.to_float(temp.strip()), self.to_float(hum.strip())