Skip to content

Commit

Permalink
chore: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
guendto committed Oct 3, 2021
1 parent 7c0cd62 commit fde434b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jomiel/subsys/broker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ def init():
"""Initiates the broker."""

def _log(text, msgtype):
"""Write a new entry to the logger."""
"""Write a event to the logger."""
logger = getattr(lg(), msgtype)
logger("subsystem/broker: %s", text)

def log(text):
"""Write a new "debug" entry to the logger."""
"""Write a "debug" event to the logger."""
_log(text, "debug")

def log_error(text):
"""Write a new "error" entry to the logger."""
"""Write an "error" event to the logger."""
_log(text, "error")

def bind_endpoint(device, endpoint, setup_curve=False):
Expand Down

0 comments on commit fde434b

Please sign in to comment.