From: Herwin Weststrate Date: Thu, 17 Dec 2015 19:00:25 +0000 (+0100) Subject: Show operator that is actually used instead of the default in rlm_python X-Git-Tag: release_3_0_11~31^2~1 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;h=a5c6c753982e03b5cf9efd4042764a799c87933f;p=freeradius.git 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" --- 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);