diff --git a/lib/plugins.py b/lib/plugins.py index aad4c1516..580b94df5 100644 --- a/lib/plugins.py +++ b/lib/plugins.py @@ -82,8 +82,8 @@ class BasePlugin: def fullname(self): return self.name - def print_error(self, msg): - print_error("[%s]"%self.name, msg) + def print_error(self, *msg): + print_error("[%s]"%self.name, *msg) def description(self): return 'undefined' diff --git a/plugins/openalias.py b/plugins/openalias.py index 9a8373dcb..990e3db0b 100644 --- a/plugins/openalias.py +++ b/plugins/openalias.py @@ -258,7 +258,7 @@ class Plugin(BasePlugin): # answer should contain two RRSET: DNSKEY and RRSIG(DNSKEY) answer = response.answer if len(answer) != 2: - self.print_error("answer error") + self.print_error("answer error", answer) return 0 # the DNSKEY should be self signed, validate it