sul-dlss / libsys-airflow

Airflow DAGS for migrating and managing ILS data into FOLIO along with other LibSys workflows
Apache License 2.0
5 stars 0 forks source link

Log errors but do not raise SystemExit for encumbrances script #1426

Closed jgreben closed 1 week ago

jgreben commented 1 week ago

The fix_encumbrances dag will not email the log if there is an error that raises SystemExit(1). Log the errors and always complete the script.

jgreben commented 1 week ago

I modified the fix_encumbrances script to print the "info" and "warning" statements to stdout (the log file) and the "errors" to both stdout and the logger.