From 48df7e52051ff36784e9f2bc951e47710c7cb13b Mon Sep 17 00:00:00 2001 From: Tim Jenness Date: Fri, 26 Apr 2024 16:44:38 -0700 Subject: [PATCH] Use specific logger This helps with debugging ingest failures since the ingest logs will not be captured by the assertLogs --- tests/test_ingest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_ingest.py b/tests/test_ingest.py index d32f4f00..ecf1cf3a 100644 --- a/tests/test_ingest.py +++ b/tests/test_ingest.py @@ -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])