[sr-dev] git:master:c8363905: added bool to print error once
Alexandr Dubovikov
alexandr.dubovikov at gmail.com
Sat Jan 17 20:48:11 CET 2015
Module: kamailio
Branch: master
Commit: c8363905755e5d120251eed95c5fa1be45e8f216
URL: https://github.com/kamailio/kamailio/commit/c8363905755e5d120251eed95c5fa1be45e8f216
Author: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Committer: Alexandr Dubovikov <alexandr.dubovikov at gmail.com>
Date: 2015-01-17T20:34:35+01:00
added bool to print error once
---
Modified: modules/sipcapture/hep.c
---
Diff: https://github.com/kamailio/kamailio/commit/c8363905755e5d120251eed95c5fa1be45e8f216.diff
Patch: https://github.com/kamailio/kamailio/commit/c8363905755e5d120251eed95c5fa1be45e8f216.patch
---
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;
}
More information about the sr-dev
mailing list