[sr-dev] git:master:efe9d554: cfgutils: Remove debug statements in sleep functions

Alex Hermann alex at hexla.nl
Sat Sep 23 07:58:46 CEST 2017


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

Author: Alex Hermann <alex at speakup.nl>
Committer: Alex Hermann <alex at hexla.nl>
Date: 2017-09-22T11:56:54+02:00

cfgutils: Remove debug statements in sleep functions

Too much noise when debug logging is on

---

Modified: src/modules/cfgutils/cfgutils.c

---

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

---

diff --git a/src/modules/cfgutils/cfgutils.c b/src/modules/cfgutils/cfgutils.c
index c2fc404c56..4a3e001e6e 100644
--- a/src/modules/cfgutils/cfgutils.c
+++ b/src/modules/cfgutils/cfgutils.c
@@ -622,7 +622,6 @@ static int m_sleep(struct sip_msg *msg, char *time, char *str2)
 		LM_ERR("cannot get time interval value\n");
 		return -1;
 	}
-	LM_DBG("sleep %lu seconds\n", (unsigned long)s);
 	sleep((unsigned int)s);
 	return 1;
 }
@@ -635,7 +634,6 @@ static int m_usleep(struct sip_msg *msg, char *time, char *str2)
 		LM_ERR("cannot get time interval value\n");
 		return -1;
 	}
-	LM_DBG("sleep %lu microseconds\n", (unsigned long)time);
 	sleep_us((unsigned int)s);
 	return 1;
 }




More information about the sr-dev mailing list