From: Peter van Dijk Date: Fri, 17 Jun 2016 11:25:37 +0000 (+0200) Subject: add tags support to ProtobufLogger.py X-Git-Tag: auth-4.0.0-rc1~35^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4012%2Fhead;p=thirdparty%2Fpdns.git add tags support to ProtobufLogger.py --- diff --git a/contrib/ProtobufLogger.py b/contrib/ProtobufLogger.py index d11180a079..848dd63fb9 100644 --- a/contrib/ProtobufLogger.py +++ b/contrib/ProtobufLogger.py @@ -74,11 +74,16 @@ class PDNSPBConnHandler(object): if response.HasField('appliedPolicy') and response.appliedPolicy: policystr = ', Applied policy: ' + response.appliedPolicy + tagsstr = '' + if response.tags: + tagsstr = ', Tags: ' + ','.join(response.tags) + rrscount = len(response.rrs) - print("- Response Code: %d, RRs: %d%s" % (response.rcode, + print("- Response Code: %d, RRs: %d%s%s" % (response.rcode, rrscount, - policystr)) + policystr, + tagsstr)) for rr in response.rrs: rrclass = 1