[sr-dev] git:master:31b86621: userblacklist: little changes in debug output

GitHub noreply at github.com
Fri Jul 29 16:18:43 CEST 2016


Module: kamailio
Branch: master
Commit: 31b86621adb352cb15c5b56404e5bc6a3a051535
URL: https://github.com/kamailio/kamailio/commit/31b86621adb352cb15c5b56404e5bc6a3a051535

Author: Rick <dunst0 at users.noreply.github.com>
Committer: GitHub <noreply at github.com>
Date: 2016-07-28T12:30:31+02:00

userblacklist: little changes in debug output

- Fixed confusing debug output in module for global blacklists and whitelists

---

Modified: modules/userblacklist/userblacklist.c

---

Diff:  https://github.com/kamailio/kamailio/commit/31b86621adb352cb15c5b56404e5bc6a3a051535.diff
Patch: https://github.com/kamailio/kamailio/commit/31b86621adb352cb15c5b56404e5bc6a3a051535.patch

---

diff --git a/modules/userblacklist/userblacklist.c b/modules/userblacklist/userblacklist.c
index 2a1a448..39ec68b 100644
--- a/modules/userblacklist/userblacklist.c
+++ b/modules/userblacklist/userblacklist.c
@@ -534,6 +534,9 @@ static int check_blacklist(sip_msg_t *msg, struct check_blacklist_fs_t *arg1)
 			/* LM_DBG("whitelisted"); */
 			ret = 1; /* found, but is whitelisted */
 		}
+		else {
+			LM_DBG("entry %s is blacklisted\n", req_number);
+		}
 	}
 	else {
 		/* LM_ERR("not found"); */
@@ -541,7 +544,6 @@ static int check_blacklist(sip_msg_t *msg, struct check_blacklist_fs_t *arg1)
 	}
 	lock_release(lock);
 
-	LM_DBG("entry %s is blacklisted\n", req_number);
 	return ret;
 }
 
@@ -580,6 +582,9 @@ static int check_whitelist(sip_msg_t *msg, struct check_blacklist_fs_t *arg1)
 			/* LM_DBG("whitelisted"); */
 			ret = 1; /* found, but is whitelisted */
 		}
+		else {
+			LM_DBG("entry %s is blacklisted\n", req_number);
+		}
 	}
 	else {
 		/* LM_ERR("not found"); */
@@ -587,7 +592,6 @@ static int check_whitelist(sip_msg_t *msg, struct check_blacklist_fs_t *arg1)
 	}
 	lock_release(lock);
 
-	LM_DBG("entry %s is blacklisted\n", req_number);
 	return ret;
 }
 




More information about the sr-dev mailing list