Module: kamailio Branch: 4.2 Commit: a244189eeb454e7c1de85022002d69bf38482f43 URL: https://github.com/kamailio/kamailio/commit/a244189eeb454e7c1de85022002d69bf...
Author: Alexandr Dubovikov alexandr.dubovikov@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-02-04T18:03:50+01:00
added bool to print error once (cherry picked from commit c8363905755e5d120251eed95c5fa1be45e8f216)
---
Modified: modules/sipcapture/hep.c
---
Diff: https://github.com/kamailio/kamailio/commit/a244189eeb454e7c1de85022002d69bf... Patch: https://github.com/kamailio/kamailio/commit/a244189eeb454e7c1de85022002d69bf...
---
diff --git a/modules/sipcapture/hep.c b/modules/sipcapture/hep.c index c1ff51c..a14fcd9 100644 --- a/modules/sipcapture/hep.c +++ b/modules/sipcapture/hep.c @@ -37,7 +37,7 @@ #include "sipcapture.h"
- +static int show_error = 0; static int count = 0;
struct hep_timehdr* heptime; @@ -58,7 +58,10 @@ int hep_msg_received(void *data) struct receive_info *ri;
if(!hep_capture_on) { - LOG(L_ERR, "sipcapture:hep_msg_received HEP is not enabled\n"); + if(show_error == 0) { + LOG(L_ERR, "sipcapture:hep_msg_received HEP is not enabled\n"); + show_error = 1; + } return -1; }