Module: kamailio
Branch: 5.7
Commit: 64f0c3f3979de7a40732067792d89c6d3b1c23d4
URL: 
https://github.com/kamailio/kamailio/commit/64f0c3f3979de7a40732067792d89c6d3b1c23d4

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-07-07T09:35:27+02:00

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)

---

Modified: src/modules/db_mysql/km_my_con.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/64f0c3f3979de7a40732067792d89c6d3b1c23d4.diff
Patch: 
https://github.com/kamailio/kamailio/commit/64f0c3f3979de7a40732067792d89c6d3b1c23d4.patch

---

diff --git a/src/modules/db_mysql/km_my_con.c b/src/modules/db_mysql/km_my_con.c
index 04982292673..8534ac0a156 100644
--- a/src/modules/db_mysql/km_my_con.c
+++ b/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;
        }

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to