[sr-dev] git:master:38acfb59: ctl: info log messages made debug

Daniel-Constantin Mierla miconda at gmail.com
Fri Mar 5 07:35:30 CET 2021


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-03-05T07:32:47+01:00

ctl: info log messages made debug

- used to troubleshoot infite loop on shut down phase
- GH #2661

---

Modified: src/modules/ctl/io_listener.c

---

Diff:  https://github.com/kamailio/kamailio/commit/38acfb59dde232b1a9f0ffc206fb46b320cd8e10.diff
Patch: https://github.com/kamailio/kamailio/commit/38acfb59dde232b1a9f0ffc206fb46b320cd8e10.patch

---

diff --git a/src/modules/ctl/io_listener.c b/src/modules/ctl/io_listener.c
index 93ce89c948..ac8f64fc90 100644
--- a/src/modules/ctl/io_listener.c
+++ b/src/modules/ctl/io_listener.c
@@ -495,7 +495,7 @@ static int handle_stream_read(struct stream_connection* s_c, int idx)
 		DBG("handle_stream read: eof on %s\n", s_c->parent->name);
 		goto close_connection;
 	}
-	LM_INFO("bytes read: %d\n", bytes_read);
+	LM_DBG("bytes read: %d\n", bytes_read);
 	r->end+=bytes_read;
 	if (bytes_read && (bytes_read<r->bytes_to_go)){
 		r->bytes_to_go-=bytes_read;
@@ -515,7 +515,7 @@ static int handle_stream_read(struct stream_connection* s_c, int idx)
 			/* error while processing the packet => close the connection */
 			goto close_connection;
 		}
-		LM_INFO("bytes processed: %d\n", bytes_processed);
+		LM_DBG("bytes processed: %d\n", bytes_processed);
 		r->proc+=bytes_processed;
 		r->bytes_to_go=bytes_needed;
 		if (bytes_needed>0){




More information about the sr-dev mailing list