Skip to content

Commit

Permalink
Use specific logger
Browse files Browse the repository at this point in the history
This helps with debugging ingest failures since the ingest logs
will not be captured by the assertLogs
  • Loading branch information
timj committed Apr 26, 2024
1 parent 0e3a7ef commit 48df7e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def testSimpleIngest(self):
# Now ingest dataset_3, which should generate a warning because of
# the end time being before the begin time.
files = [os.path.join(INGESTDIR, "sidecar_data", "dataset_3.yaml")]
with self.assertLogs("lsst.obs.base", level="WARNING") as cm:
with self.assertLogs("lsst.obs.base._instrument", level="WARNING") as cm:
self.task.run(files, run=self.outputRun)

self.assertIn("has end time before begin time", cm.output[0])
Expand Down

0 comments on commit 48df7e5

Please sign in to comment.