Make some extra logging statements and stuff to troubleshoot fit deletion bugs (#1199)

This commit is contained in:
Ryan Holmes
2017-05-30 22:57:52 -04:00
committed by GitHub
parent 4286f2ea5a
commit 45c3533501
5 changed files with 29 additions and 8 deletions

View File

@@ -278,7 +278,9 @@ class FittingView(d.Display):
We also refresh the fit of the new current page in case
delete fit caused change in stats (projected)
"""
pyfalog.debug("FittingView::fitRemoved")
if event.fitID == self.getActiveFit():
pyfalog.debug(" Deleted fit is currently active")
self.parent.DeletePage(self.parent.GetPageIndex(self))
try:
@@ -287,7 +289,7 @@ class FittingView(d.Display):
sFit.refreshFit(self.getActiveFit())
wx.PostEvent(self.mainFrame, GE.FitChanged(fitID=self.activeFitID))
except wx._core.PyDeadObjectError:
pyfalog.error("Caught dead object")
pyfalog.warning("Caught dead object")
pass
event.Skip()