diff options
author | Denis Costa <deniscostadsc@gmail.com> | 2016-10-19 14:46:05 -0200 |
---|---|---|
committer | Kali Kaneko (leap communications) <kali@leap.se> | 2016-10-19 16:55:50 -0400 |
commit | 4cee83f733238e5ebed6b8083158c6df3ad98f54 (patch) | |
tree | 4bec6bcd47e5c555663a7c14e72814bad84bdcac /src/leap/bitmask/core | |
parent | 0329b242c851ea1f05e795102638b01bbac7c231 (diff) |
[bug] Fix warning logging.
Following Twisted documentation, I found out that the warning method
doesn't exist on logger class. That class has warn method instead. And I
got a error because of that.
https://twistedmatrix.com/documents/16.4.1/api/twisted.logger.Logger.html
Diffstat (limited to 'src/leap/bitmask/core')
-rw-r--r-- | src/leap/bitmask/core/mail_services.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/bitmask/core/mail_services.py b/src/leap/bitmask/core/mail_services.py index c5a66366..4dc9eede 100644 --- a/src/leap/bitmask/core/mail_services.py +++ b/src/leap/bitmask/core/mail_services.py @@ -582,7 +582,7 @@ class StandardMailService(service.MultiService, HookableService): try: shutil.rmtree(tokens_folder) except OSError as e: - logger.warning("Can't remove tokens folder %s: %s" + logger.warn("Can't remove tokens folder %s: %s" % (tokens_folder, e)) return os.mkdir(tokens_folder, 0700) |