summaryrefslogtreecommitdiff
path: root/alot/commands/globals.py
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-12-11 13:27:15 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-12-14 08:31:40 +0100
commit00c7d41e80b24aa7a146440ce7bd996df4358a64 (patch)
treea6942388866dd0be749e050f018d7703c8ca4b27 /alot/commands/globals.py
parent571422a079ce235eba738ccfeac1ca2f043ece23 (diff)
Use native logging string interpolation
This will also make the string interpolation lazy evaluated.
Diffstat (limited to 'alot/commands/globals.py')
-rw-r--r--alot/commands/globals.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index af9eb7f9..7d5c1d3e 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -851,19 +851,18 @@ class ComposeCommand(Command):
# set encryption if needed
if self.encrypt or account.encrypt_by_default == u"all":
- logging.debug("Trying to encrypt message because encrypt={} and "
- "encrypt_by_default={}".format(
- self.encrypt, account.encrypt_by_default))
+ logging.debug("Trying to encrypt message because encrypt=%s and "
+ "encrypt_by_default=%s", self.encrypt,
+ account.encrypt_by_default)
yield self._set_encrypt(ui, self.envelope)
elif account.encrypt_by_default == u"trusted":
logging.debug("Trying to encrypt message because "
- "account.encrypt_by_default={}".format(
- account.encrypt_by_default))
+ "account.encrypt_by_default=%s",
+ account.encrypt_by_default)
yield self._set_encrypt(ui, self.envelope, trusted_only=True)
else:
- logging.debug(
- "No encryption by default, encrypt_by_default={}".format(
- account.encrypt_by_default))
+ logging.debug("No encryption by default, encrypt_by_default=%s",
+ account.encrypt_by_default)
cmd = commands.envelope.EditCommand(envelope=self.envelope,
spawn=self.force_spawn,