From d9997edce4897e234334aa5a6ce22191f3266cec Mon Sep 17 00:00:00 2001 From: BeardedTek Date: Fri, 26 Aug 2022 11:55:51 -0800 Subject: [PATCH] mqtt_client logging improvements (#91) * rebase on main (#90) * Update README.md * mqtt credentials fix Thanks to @renarena for identifying this bug in #88 and via the matrix support channel. Much thanks! * mqtt_client logging improvements Was not logging config file import status. Now outputs config file import status to stderr * Update .drone.yml --- .drone.yml | 3 ++- app/mqtt_client | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index bce58b7..e877592 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,6 +4,7 @@ image_pull_secrets: - docker-auth-beardedtek.com trigger: branch: + - 0.6-dev - main event: - push @@ -19,7 +20,7 @@ steps: from_secret: docker_password repo: docker.beardedtek.com/beardedtek/fevr registry: docker.beardedtek.com - tags: dev,${DRONE_REPO_BRANCH} + tags: dev experimental: true compress: true squash: true diff --git a/app/mqtt_client b/app/mqtt_client index acb8600..4c632fc 100755 --- a/app/mqtt_client +++ b/app/mqtt_client @@ -89,6 +89,9 @@ class fevrMQTT: self.configFile = self.getConfig(self.Args['config']) if self.configFile['fevr_host'] and self.configFile['fevr_port']: self.configFile["fevr"] = f"{self.configFile['fevr_host']}:{self.configFile['fevr_port']}" + if "error" in self.configFile: + errors = f"Config File Import Failure: {self.configFile['error']}" if self.configFile['error'] else "Config File Import Successful." + logit.execute(errors,src="MQTT | CONFIG") self.setup() self.run()