Răsfoiți Sursa

db_mysql: switch warn to dbg for log messages for opt_ssl_mode

- GH #3884

(cherry picked from commit 8f98317e92da61160a1c416e0da45938a205d358)
(cherry picked from commit 7360ab7fbe672259c7433b1a5199467d24183d79)
Daniel-Constantin Mierla 1 an în urmă
părinte
comite
64f0c3f397
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/modules/db_mysql/km_my_con.c

+ 2 - 2
src/modules/db_mysql/km_my_con.c

@@ -133,7 +133,7 @@ struct my_con *db_mysql_new_connection(const struct db_id *id)
 #if MYSQL_VERSION_ID >= 100339
 			mysql_options(ptr->con, MYSQL_OPT_SSL_ENFORCE, (void *)&(int){1});
 #else
-			LM_WARN("ssl mode not supported by %s\n", MARIADB_BASE_VERSION);
+			LM_DBG("ssl mode not supported by %s\n", MARIADB_BASE_VERSION);
 #endif
 			break;
 		case 5: /* SSL_MODE_VERIFY_IDENTITY */
@@ -141,7 +141,7 @@ struct my_con *db_mysql_new_connection(const struct db_id *id)
 					(void *)&(int){1});
 			break;
 		default:
-			LM_WARN("opt_ssl_mode = %d not supported by MariaDB Connector/C\n",
+			LM_DBG("opt_ssl_mode = %d not supported by MariaDB Connector/C\n",
 					db_mysql_opt_ssl_mode);
 			break;
 	}