[sr-dev] git:master: tm: set log level to debug for negative return code of run_top_route()

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 9 12:30:51 CEST 2012


Module: sip-router
Branch: master
Commit: 038780fdf40c8d5d3694538f199411810fad7a0e
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=038780fdf40c8d5d3694538f199411810fad7a0e

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Oct  9 12:29:09 2012 +0200

tm: set log level to debug for negative return code of run_top_route()

- it returns the code of last execution action, negative return is not
  necessary an error

---

 modules/tm/t_fwd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/tm/t_fwd.c b/modules/tm/t_fwd.c
index 38312a2..82a89f9 100644
--- a/modules/tm/t_fwd.c
+++ b/modules/tm/t_fwd.c
@@ -338,7 +338,7 @@ static int prepare_new_uac( struct cell *t, struct sip_msg *i_req,
 				if (run_top_route(branch_rt.rlist[branch_route], i_req, &ctx)
 						< 0)
 				{
-					LOG(L_ERR, "Error in run_top_route\n");
+					LOG(L_DBG, "negative return code in run_top_route\n");
 				}
 				/* update dst send_flags  and send socket*/
 				snd_flags=i_req->fwd_send_flags;




More information about the sr-dev mailing list