Skip to content

Commit

Permalink
Fixed logger init
Browse files Browse the repository at this point in the history
  • Loading branch information
samson0v committed Apr 9, 2024
1 parent 8a06209 commit bac8e73
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thingsboard_gateway/tb_utility/tb_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ def init_logger(gateway, name, level):
log_level_conf = level
if log_level_conf:
log_level = logging.getLevelName(log_level_conf)
log.setLevel(log_level)

try:
log.setLevel(log_level)
except ValueError:
log.setLevel(logging.NOTSET)

return log

Expand Down

0 comments on commit bac8e73

Please sign in to comment.