Module: kamailio
Branch: master
Commit: a8de371e90ddc8a6921b5bf7464961865804cc06
URL:
https://github.com/kamailio/kamailio/commit/a8de371e90ddc8a6921b5bf74649618…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-12-26T12:04:59+01:00
auth_db: print db table name when version check fails
---
Modified: src/modules/auth_db/auth_db_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a8de371e90ddc8a6921b5bf74649618…
Patch:
https://github.com/kamailio/kamailio/commit/a8de371e90ddc8a6921b5bf74649618…
---
diff --git a/src/modules/auth_db/auth_db_mod.c b/src/modules/auth_db/auth_db_mod.c
index 13fa154804..cd1ebaf8ba 100644
--- a/src/modules/auth_db/auth_db_mod.c
+++ b/src/modules/auth_db/auth_db_mod.c
@@ -303,7 +303,8 @@ static int auth_fixup(void** param, int param_no)
if(version_table_check!=0
&& db_check_table_version(&auth_dbf, dbh, &name,
TABLE_VERSION) < 0) {
- LM_ERR("error during table version check.\n");
+ LM_ERR("error during version check for db table: %.*s.\n",
+ name.len, name.s);
auth_dbf.close(dbh);
return -1;
}