Module: kamailio
Branch: master
Commit: 40971d1ed829bc8e18a684cd4431649acd47999e
URL:
https://github.com/kamailio/kamailio/commit/40971d1ed829bc8e18a684cd4431649…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2014-12-23T10:25:58+01:00
core: use corelog level for debug messages when sending out fails
- allow better control of what is printed, FS#68
---
Modified: forward.h
---
Diff:
https://github.com/kamailio/kamailio/commit/40971d1ed829bc8e18a684cd4431649…
Patch:
https://github.com/kamailio/kamailio/commit/40971d1ed829bc8e18a684cd4431649…
---
diff --git a/forward.h b/forward.h
index 2babd74..e1cd093 100644
--- a/forward.h
+++ b/forward.h
@@ -205,7 +205,7 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
}
if (unlikely(udp_send(dst, outb.s, outb.len)==-1)){
STATS_TX_DROPS;
- LM_ERR("udp_send failed\n");
+ LOG(cfg_get(core, core_cfg, corelog), "udp_send failed\n");
goto error;
}
}
@@ -224,7 +224,7 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
}
if (unlikely(tcp_send(dst, from, outb.s, outb.len)<0)){
STATS_TX_DROPS;
- LM_ERR("tcp_send failed\n");
+ LOG(cfg_get(core, core_cfg, corelog), "tcp_send failed\n");
goto error;
}
}
@@ -244,7 +244,7 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
}
if (unlikely(tcp_send(dst, from, outb.s, outb.len)<0)){
STATS_TX_DROPS;
- LM_ERR("tcp_send failed\n");
+ LOG(cfg_get(core, core_cfg, corelog), "tcp_send failed\n");
goto error;
}
}
@@ -269,7 +269,7 @@ static inline int msg_send(struct dest_info* dst, char* buf, int len)
}
if (unlikely(sctp_core_msg_send(dst, outb.s, outb.len)<0)){
STATS_TX_DROPS;
- LM_ERR("sctp_msg_send failed\n");
+ LOG(cfg_get(core, core_cfg, corelog), "sctp_msg_send failed\n");
goto error;
}
}