Skip to content

Commit

Permalink
Pangui Info Logger Statement
Browse files Browse the repository at this point in the history
Added a logger.info statement to pangui.py. For every process, this ensures that when a panel number is entered, it's saved in the logfile. The change to pangui.py is the sole change in this update.
  • Loading branch information
iwardlaw111 authored Oct 21, 2022
1 parent 8273af7 commit e9bbd0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion guis/panel/pangui/pangui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ def _init_widget_lists(self):
self.ui.startButton7,
self.ui.startButton_8,
]

# without the loop it would look like self.ui.startButton1.clicked.connect(self.pro1part1)
for btn in self.startButtons:
btn.clicked.connect(
Expand Down Expand Up @@ -2928,6 +2928,7 @@ def loadpro(self):
## Try to load all previous data
try:
(data, elapsed_time, steps_completed) = self.DP.loadData()
logger.info('Loaded Panel ' + str(self.getCurrentPanel()))
except Exception as e:
c = sys.exc_info()[0]
t = traceback.format_exc()
Expand Down

0 comments on commit e9bbd0a

Please sign in to comment.