diff --git a/python/lsst/consdb/hinfo.py b/python/lsst/consdb/hinfo.py index 7c7891cc..a688624b 100644 --- a/python/lsst/consdb/hinfo.py +++ b/python/lsst/consdb/hinfo.py @@ -257,11 +257,13 @@ def process_date(day_obs: str) -> None: dbname = os.environ.get("DB_NAME") url = "" if host and passwd and user and dbname: + print(f"Connecting to {host} as {user} to {dbname}") url = f"postgresql://{user}:{passwd}@{host}/{dbname}" else: url = os.environ.get( "POSTGRES_URL", "postgresql://usdf-butler.slac.stanford.edu:5432/lsstdb1" ) + print("Using POSTGRES_URL {user} {host} {dbname}") engine = create_engine(url) metadata_obj = MetaData(schema=f"cdb_{instrument.lower()}") exposure_table = Table("exposure", metadata_obj, autoload_with=engine)