Skip to content

Commit

Permalink
sflib: log debug messages in database (smicallef#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoles committed Oct 3, 2020
1 parent 693a975 commit 129b74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sflib.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ def debug(self, message):
else:
modName = mod.__name__

if self.dbh is None:
if self.dbh:
self._dblog("DEBUG", message, modName)

self.log.debug(f"{modName} : {message}")
Expand Down

0 comments on commit 129b74f

Please sign in to comment.