From: Remi Gacogne Date: Mon, 28 Aug 2023 15:59:18 +0000 (+0200) Subject: ProtobufLogger.py: Fix an issue with meta containing both integer and string values X-Git-Tag: rec-5.0.0-alpha2~22^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8f4c308afabe812a9d7cede96bca121a57cea80;p=thirdparty%2Fpdns.git ProtobufLogger.py: Fix an issue with meta containing both integer and string values --- diff --git a/contrib/ProtobufLogger.py b/contrib/ProtobufLogger.py index c6bb0269df..7493211b47 100644 --- a/contrib/ProtobufLogger.py +++ b/contrib/ProtobufLogger.py @@ -269,7 +269,7 @@ class PDNSPBConnHandler(object): for entry in mt.value.stringVal: values = ', '.join([values, entry]) if values != '' else entry for entry in mt.value.intVal: - values = ', '.join([values, entry]) if values != '' else entry + values = ', '.join([values, str(entry)]) if values != '' else str(entry) print('- %s -> %s' % (mt.key, values))