simonsobs / librarian

The HERA Librarian.
BSD 2-Clause "Simplified" License
1 stars 2 forks source link

Add core error logging framework #32

Closed JBorrow closed 7 months ago

JBorrow commented 7 months ago

Adds a logging framework that can save logs to the database, along with tests.

@plaplant the plan is to integrate this into the background tasks so that we can surface these with the web UI.

@mhasself - at some point you mentioned that there is an SO logging framework. It may make sense to integrate that here in a similar way. Can you point me in the right direction for that?

JBorrow commented 7 months ago

Errors for send/recv tasks nee more thought. Will come back to those. Working on implementing endpoints, models, and client interaction now.

JBorrow commented 7 months ago

TBD:

May be helpful to rebase on search first.

JBorrow commented 7 months ago

This is ready to go now; @plaplant if you would like to give it a quick look that might be helpful. It's creating a new table in the database for error logging and putting stuff there when we have problems.