[PATCH] clear logs for DLR

"Vincent CHAVANIS" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <02f401c7f06a$bd1e55f0$9600a8c0@vince>
Hi all,

A small patch making logs a lit bit clear for DLR.
"DLR waiting for other delivery report"  are not essential in log-level = 1, 
we should keep it but in log-level 0
We received dozens and dozens of these lines which is really annoying and 
make the logs unreadable.
For people in log-level 0 this will not change anything.

Any comments ?

Vincent
--
Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR)
Service Technique/Reseau - NOC
Developpement SMS/MMS/Kiosques
http://www.telemaque.fr/
[email protected]
Tel : +33 4 92 90 99 84 (fax 9142)
dlr_debug.txt (text/plain, 742 B)
diff -rauw /gateway-cvs/gw/dlr.c /gateway/gw/dlr.c
--- /gateway-cvs/gw/dlr.c       2007-01-08 00:53:01.000000000 +0100
+++ /gateway/gw/dlr.c   2007-08-20 18:21:43.000000000 +0200
@@ -416,7 +416,7 @@
  
     /* check for end status and if so remove from storage */
     if ((typ & DLR_BUFFERED) && ((dlr->mask & DLR_SUCCESS) || (dlr->mask & DLR_FAIL))) {
-        info(0, "DLR[%s]: DLR not destroyed, still waiting for other delivery report", dlr_type());
+        debug("dlr.dlr", 0, "DLR[%s]: DLR not destroyed, still waiting for other delivery report", dlr_type());
         /* update dlr entry status if function defined */
         if (handles != NULL && handles->dlr_update != NULL)
             handles->dlr_update(smsc, ts, dst, typ);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.