From 151a2f5bf74701e9e1672847a11b10360263db09 Mon Sep 17 00:00:00 2001 From: drebs Date: Fri, 24 Apr 2015 10:56:56 -0300 Subject: [feat] make log messages match postfix's config Change the virtual alias map and the access recipien access checker log messages so they match postfix's configuration statements. --- src/leap/mx/alias_resolver.py | 2 +- src/leap/mx/check_recipient_access.py | 2 +- src/leap/mx/tcp_map.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/leap/mx/alias_resolver.py b/src/leap/mx/alias_resolver.py index c6f2acc..bf7a58b 100644 --- a/src/leap/mx/alias_resolver.py +++ b/src/leap/mx/alias_resolver.py @@ -77,4 +77,4 @@ class AliasResolverFactory(LEAPPostfixTCPMapServerFactory): @property def _query_message(self): - return "Resolving alias for" + return "virtual alias map" diff --git a/src/leap/mx/check_recipient_access.py b/src/leap/mx/check_recipient_access.py index 55460a6..f994e78 100644 --- a/src/leap/mx/check_recipient_access.py +++ b/src/leap/mx/check_recipient_access.py @@ -84,5 +84,5 @@ class CheckRecipientAccessFactory(LEAPPostfixTCPMapServerFactory): @property def _query_message(self): - return "Checking recipient access for" + return "check recipient access" diff --git a/src/leap/mx/tcp_map.py b/src/leap/mx/tcp_map.py index 597c830..96db70a 100644 --- a/src/leap/mx/tcp_map.py +++ b/src/leap/mx/tcp_map.py @@ -66,7 +66,7 @@ class LEAPPostfixTCPMapServerFactory(ServerFactory, object): and pgp key. :rtype: Deferred """ - log.msg("%s %s" % (self._query_message, lookup_key,)) + log.msg("%s: %s" % (self._query_message, lookup_key,)) d = self._cdb.getUuidAndPubkey(lookup_key) d.addErrback(log.err) return d -- cgit v1.2.3