Skip to content

Commit

Permalink
Reduce log level of dipole fit failure to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
villarrealas committed Jul 18, 2023
1 parent 669dc76 commit 9a0ca54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/ip/diffim/dipoleFitTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ def measure(self, measRecord, exposure, posExp=None, negExp=None):
except pexExcept.LengthError:
self.fail(measRecord, measBase.MeasurementError('edge failure', self.FAILURE_EDGE))
except Exception as e:
self.fail(measRecord, measBase.MeasurementError('Exception in dipole fit', self.FAILURE_FIT))
self.log.error("Exception in dipole fit. %s: %s", e.__class__.__name__, e)
errorMessage = f"Exception in dipole fit. {e.__class__.__name__}: {e}"
self.fail(measRecord, measBase.MeasurementError(errorMessage, self.FAILURE_FIT))

if result is None:
measRecord.set(self.classificationFlagKey, False)
Expand Down

0 comments on commit 9a0ca54

Please sign in to comment.