Selaa lähdekoodia

auth_db: print db table name when version check fails

(cherry picked from commit a8de371e90ddc8a6921b5bf7464961865804cc06)
(cherry picked from commit f62c3cb67c9c2be10393bdeec684eb3dc9325dd6)
(cherry picked from commit d498c3ca48ad2e0538d29e13eb283f480a352916)
Daniel-Constantin Mierla 6 vuotta sitten
vanhempi
commit
9eb508dd7e
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/modules/auth_db/auth_db_mod.c

+ 2 - 1
src/modules/auth_db/auth_db_mod.c

@@ -305,7 +305,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;
 		}