mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
DB: produce a backtrace in case of a DB error
This helps us to identify where exactly in our code the DB error originates from.
This commit is contained in:
@@ -181,6 +181,7 @@ void db_error_func(dbi_conn conn, void *data)
|
||||
const char *msg;
|
||||
dbi_conn_error(conn, &msg);
|
||||
LOGP(DDB, LOGL_ERROR, "DBI: %s\n", msg);
|
||||
osmo_log_backtrace(DDB, LOGL_ERROR);
|
||||
}
|
||||
|
||||
static int update_db_revision_2(void)
|
||||
|
Reference in New Issue
Block a user