[sr-dev] git:master:9ffafd5d: db_postgres: use DBG loglevel for memory cleanup, we output an error already

Henning Westerholt hw at gilawa.com
Tue Oct 25 08:29:23 CEST 2022


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

Author: Henning Westerholt <hw at gilawa.com>
Committer: Henning Westerholt <hw at gilawa.com>
Date: 2022-10-25T06:28:51Z

db_postgres: use DBG loglevel for memory cleanup, we output an error already

---

Modified: src/modules/db_postgres/km_pg_con.c

---

Diff:  https://github.com/kamailio/kamailio/commit/9ffafd5d218eeec158081ae51c994ececab43944.diff
Patch: https://github.com/kamailio/kamailio/commit/9ffafd5d218eeec158081ae51c994ececab43944.patch

---

diff --git a/src/modules/db_postgres/km_pg_con.c b/src/modules/db_postgres/km_pg_con.c
index 895c644db67..02ceecffeb7 100644
--- a/src/modules/db_postgres/km_pg_con.c
+++ b/src/modules/db_postgres/km_pg_con.c
@@ -159,7 +159,7 @@ struct pg_con *db_postgres_new_connection(struct db_id *id)
 
 err:
 	if(ptr) {
-		LM_ERR("cleaning up %p=pkg_free()\n", ptr);
+		LM_DBG("cleaning up %p=pkg_free()\n", ptr);
 		pkg_free(ptr);
 	}
 	return 0;




More information about the sr-dev mailing list