Skip to content

Commit

Permalink
Merge pull request #274 from lsst/tickets/DM-39099
Browse files Browse the repository at this point in the history
DM-39099: Reduce log level of dipole fit failure to warning
  • Loading branch information
villarrealas committed Jul 21, 2023
2 parents 669dc76 + 9a0ca54 commit 357ee4a
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 357ee4a

Please sign in to comment.