Skip to content

Commit

Permalink
Add debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktlim committed May 28, 2024
1 parent 4155c91 commit b51be94
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions python/lsst/consdb/hinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ def region(
def ccdexposure_id(
translator: lsst.obs.lsst.translators.lsst.LsstBaseTranslator, exposure_id: int, detector: int
) -> int:
return translator.compute_detector_exposure_id(exposure_id, detector)
global logger
det_exp_id = translator.compute_detector_exposure_id(exposure_id, detector)
logger.debug(f"t={translator}, eid={exposure_id}, d={detector}, cid={det_exp_id}")
return det_exp_id


def ccd_region(
Expand Down Expand Up @@ -435,7 +438,7 @@ def get_kafka_config() -> KafkaConfig:
)


logger = setup_logging(__name__)
logger = setup_logging("consdb.hinfo")

instrument = os.environ["INSTRUMENT"]
logger.info(f"Instrument = {instrument}")
Expand Down

0 comments on commit b51be94

Please sign in to comment.