public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org>
To: cygwin-apps-cvs@sourceware.org
Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-43-ga5ee43e
Date: Sun, 22 May 2022 12:30:26 +0000 (GMT)	[thread overview]
Message-ID: <20220522123026.8614A3858010@sourceware.org> (raw)




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=a5ee43ec3aec88ce5fed804a926bfbb4b44a35e0

commit a5ee43ec3aec88ce5fed804a926bfbb4b44a35e0
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Sun May 22 13:26:29 2022 +0100

    Fix maintainer action log filtering

https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=f32a2a0ef3fe625fc0d97353158b0747037d4f8f

commit f32a2a0ef3fe625fc0d97353158b0747037d4f8f
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon Mar 7 15:00:30 2022 +0000

    Improve 'calm --email=debug'


Diff:
---
 calm/buffering_smtp_handler.py | 3 +++
 calm/calm.py                   | 5 ++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/calm/buffering_smtp_handler.py b/calm/buffering_smtp_handler.py
index 10b1e7b..b7dfee7 100644
--- a/calm/buffering_smtp_handler.py
+++ b/calm/buffering_smtp_handler.py
@@ -79,6 +79,9 @@ class BufferingSMTPHandler(logging.handlers.BufferingHandler):
             # if toaddrs consists of the single address 'debug', just dump the mail we would have sent
             if self.toaddrs == ['debug']:
                 print('-' * 40)
+                for k in m:
+                    print('%s: %s' % (k, m[k]))
+                print('-' * 40)
                 print(msg)
                 print('-' * 40)
             else:
diff --git a/calm/calm.py b/calm/calm.py
index a71497e..62dc902 100755
--- a/calm/calm.py
+++ b/calm/calm.py
@@ -145,7 +145,7 @@ def process_uploads(args, state):
     for name in sorted(mlist.keys()):
         m = mlist[name]
 
-        with logfilters.AttrFilter(maint=m):
+        with logfilters.AttrFilter(maint=m.name):
             process_maintainer_uploads(args, state, all_packages, m)
 
     # record updated reminder times for maintainers
@@ -646,6 +646,9 @@ def mail_cb(state, loghandler):
         if m.name == 'ORPHANED':
             email = common_constants.EMAILS.split(',')
 
+        if state.args.email == ['debug']:
+            email = ['debug']
+
         maint_email = BufferingSMTPHandler(email, subject='%s for %s' % (state.subject, m.name))
         threshold = logging.WARNING if m.quiet else logging.INFO
 



                 reply	other threads:[~2022-05-22 12:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220522123026.8614A3858010@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).