[sr-dev] git:master:a8de371e: auth_db: print db table name when version check fails

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 26 12:05:41 CET 2018


Module: kamailio
Branch: master
Commit: a8de371e90ddc8a6921b5bf7464961865804cc06
URL: https://github.com/kamailio/kamailio/commit/a8de371e90ddc8a6921b5bf7464961865804cc06

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/a8de371e90ddc8a6921b5bf7464961865804cc06.diff
Patch: https://github.com/kamailio/kamailio/commit/a8de371e90ddc8a6921b5bf7464961865804cc06.patch

---

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;
 		}




More information about the sr-dev mailing list