From a5c6c753982e03b5cf9efd4042764a799c87933f Mon Sep 17 00:00:00 2001 From: Herwin Weststrate Date: Thu, 17 Dec 2015 20:00:25 +0100 Subject: [PATCH] Show operator that is actually used instead of the default in rlm_python So if we remove a certain attribute, display "!* ANY" instead of "= ANY" --- src/modules/rlm_python/rlm_python.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rlm_python/rlm_python.c b/src/modules/rlm_python/rlm_python.c index 1e1a456..7ac7b75 100644 --- a/src/modules/rlm_python/rlm_python.c +++ b/src/modules/rlm_python/rlm_python.c @@ -363,9 +363,9 @@ static void mod_vptuple(TALLOC_CTX *ctx, REQUEST *request, VALUE_PAIR **vps, PyO vp->op = op; if (fr_pair_value_from_str(vp, s2, -1) < 0) { - DEBUG("rlm_python:%s: Failed: '%s:%s' = '%s'", funcname, list_name, s1, s2); + DEBUG("rlm_python:%s: Failed: '%s:%s' %s '%s'", funcname, list_name, s1, fr_int2str(fr_tokens, op, "="), s2); } else { - DEBUG("rlm_python:%s: '%s:%s' = '%s'", funcname, list_name, s1, s2); + DEBUG("rlm_python:%s: '%s:%s' %s '%s'", funcname, list_name, s1, fr_int2str(fr_tokens, op, "="), s2); } radius_pairmove(current, vps, vp, false); -- 2.1.4