Skip to content

Commit

Permalink
Merge pull request #2879 from SasView/2875-drop-logger-level-required…
Browse files Browse the repository at this point in the history
…-to-force-log-explorer-to-pop-up-from-error-to-warning

2875 drop logger level required to force log explorer to pop up from error to warning
  • Loading branch information
butlerpd authored May 9, 2024
2 parents 199dbfa + 136afeb commit eed82cb
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/sas/qtgui/MainWindow/GuiManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,14 @@ def appendLog(self, signal):
(message, record) = signal
self.listWidget.append(message.strip())

# Display log if message is error or worse
if record.levelno >= 40:
# Display log if message is warning (30) or higher
# 10: Debug
# 20: Info
# 30: Warning
# 40: Error
# 50: Critical

if record.levelno >= 30:
self.logDockWidget.setVisible(True)

def createGuiData(self, item, p_file=None):
Expand Down Expand Up @@ -803,7 +809,7 @@ def actionOpen_Analysis(self):
"""
"""
self.filesWidget.loadAnalysis()
pass


def actionSave_Project(self):
"""
Expand Down Expand Up @@ -873,13 +879,11 @@ def actionUndo(self):
"""
"""
print("actionUndo TRIGGERED")
pass

def actionRedo(self):
"""
"""
print("actionRedo TRIGGERED")
pass

def actionCopy(self):
"""
Expand Down Expand Up @@ -916,7 +920,7 @@ def actionReset(self):
logging.warning(" *** actionOpen_Analysis logging *******")
print("actionReset print TRIGGERED")
sys.stderr.write("STDERR - TRIGGERED")
pass


def actionExcel(self):
"""
Expand Down Expand Up @@ -966,7 +970,6 @@ def actionHide_Toolbar(self):
else:
self._workspace.actionHide_Toolbar.setText("Hide Toolbar")
self._workspace.toolBar.setVisible(True)
pass

def actionHide_DataExplorer(self):
"""
Expand All @@ -976,7 +979,6 @@ def actionHide_DataExplorer(self):
self.dockedFilesWidget.setVisible(False)
else:
self.dockedFilesWidget.setVisible(True)
pass

def actionHide_LogExplorer(self):
"""
Expand All @@ -986,13 +988,11 @@ def actionHide_LogExplorer(self):
self.logDockWidget.setVisible(False)
else:
self.logDockWidget.setVisible(True)
pass

def actionStartup_Settings(self):
"""
"""
print("actionStartup_Settings TRIGGERED")
pass

def actionCategory_Manager(self):
"""
Expand Down Expand Up @@ -1118,15 +1118,14 @@ def actionCombine_Batch_Fit(self):
"""
"""
print("actionCombine_Batch_Fit TRIGGERED")
pass


def actionFit_Options(self):
"""
"""
if hasattr(self._current_perspective, "fit_options_widget"):
self.preferences.show()
self.preferences.setMenuByName(self._current_perspective.fit_options_widget.name)
pass

def actionGPU_Options(self):
"""
Expand All @@ -1135,7 +1134,6 @@ def actionGPU_Options(self):
if hasattr(self._current_perspective, "gpu_options_widget"):
self.preferences.show()
self.preferences.setMenuByName(self._current_perspective.gpu_options_widget.name)
pass

def actionFit_Results(self):
"""
Expand Down Expand Up @@ -1245,14 +1243,12 @@ def actionClosePlots(self):
Closes all Plotters and Plotter2Ds.
"""
self.filesWidget.closeAllPlots()
pass

def actionMinimizePlots(self):
"""
Minimizes all Plotters and Plotter2Ds.
"""
self.filesWidget.minimizeAllPlots()
pass

#============ HELP =================
def actionDocumentation(self):
Expand Down

0 comments on commit eed82cb

Please sign in to comment.