Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2875 drop logger level required to force log explorer to pop up from error to warning #2879

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading