Skip to content

Commit

Permalink
Merge pull request #10 from cokelaer/fixing_logging
Browse files Browse the repository at this point in the history
Fixing logging
  • Loading branch information
cokelaer authored Nov 16, 2021
2 parents 31673ba + d98c7e1 commit b972628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
colorlog
PyQt5==5.15.4
PyQt5-sip<13,>=12.8
PyQt5-Qt5==5.15.2
Expand Down
3 changes: 2 additions & 1 deletion sequanix/sequanix.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,8 @@ def set_level(self):
# Set the level of the logging system
pref = self.preferences_dialog.ui
level = pref.preferences_options_general_logging_value.currentText()
level = getattr(colorlog.logging.logging, level)
#level = getattr(colorlog.logging.logging, level)
level = colorlog.getLogger().level
colorlog.getLogger().setLevel(level)

# ---------------------------------------------------------------
Expand Down

0 comments on commit b972628

Please sign in to comment.