aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/commands/eml_key.py
diff options
context:
space:
mode:
authorJ08nY2017-08-04 14:56:11 +0200
committerJ08nY2017-08-04 14:56:29 +0200
commita8e59ed42798358428fa32b7917ef07b7118766b (patch)
tree70b81d44b758c9a69663c1c03609533233179514 /src/mailman_pgp/commands/eml_key.py
parent4e4f91d64e32ccd601cb86fbb2a30bf3db3acf24 (diff)
downloadmailman-pgp-feature/logging.tar.gz
mailman-pgp-feature/logging.tar.zst
mailman-pgp-feature/logging.zip
Diffstat (limited to 'src/mailman_pgp/commands/eml_key.py')
-rw-r--r--src/mailman_pgp/commands/eml_key.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mailman_pgp/commands/eml_key.py b/src/mailman_pgp/commands/eml_key.py
index 1f39888..0775bed 100644
--- a/src/mailman_pgp/commands/eml_key.py
+++ b/src/mailman_pgp/commands/eml_key.py
@@ -16,6 +16,7 @@
# this program. If not, see <http://www.gnu.org/licenses/>.
"""The key email command."""
+import logging
from email.mime.text import MIMEText
from mailman.email.message import UserNotification
@@ -38,6 +39,8 @@ from mailman_pgp.workflows.key_change import (CHANGE_CONFIRM_REQUEST,
KeyChangeWorkflow)
from mailman_pgp.workflows.pubkey import CONFIRM_REQUEST
+log = logging.getLogger('mailman.plugin.pgp.commands')
+
def _cmd_set(pgp_list, mlist, msg, msgdata, arguments, results):
"""
@@ -345,4 +348,5 @@ class KeyCommand:
return ContinueProcessing.no
command = SUBCOMMANDS[arguments[0]]
+ log.debug('key {}'.format(arguments[0]))
return command(pgp_list, mlist, msg, msgdata, arguments, results)