Skip to content

Commit

Permalink
mqtt_client logging improvements (#91)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
BeardedTek authored Aug 26, 2022
1 parent 5c96c0a commit d9997ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ image_pull_secrets:
- docker-auth-beardedtek.com
trigger:
branch:
- 0.6-dev
- main
event:
- push
Expand All @@ -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
3 changes: 3 additions & 0 deletions app/mqtt_client
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit d9997ed

Please sign in to comment.