public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20160705-90-g44ba4fd Date: Sat, 30 Sep 2017 13:54:00 -0000 [thread overview] Message-ID: <20170930135433.19753.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=44ba4fdab425a806f6c662a1c193f3b9d7d0c994 commit 44ba4fdab425a806f6c662a1c193f3b9d7d0c994 Author: Jon Turney <jon.turney@dronecode.org.uk> Date: Fri Sep 29 23:56:52 2017 +0100 Email exception stopping calm daemon, as well as writing it to log Diff: --- calm/calm.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/calm/calm.py b/calm/calm.py index c0558ca..cfffb2f 100755 --- a/calm/calm.py +++ b/calm/calm.py @@ -527,7 +527,8 @@ def do_daemon(args, state): # cancel any pending alarm signal.alarm(0) except Exception as e: - logging.error("exception %s" % (type(e).__name__), exc_info=True) + with mail_logs(args.email, toaddrs=args.email, subject='calm stopping due to unhandled exception', thresholdLevel=logging.ERROR) as leads_email: + logging.error("exception %s" % (type(e).__name__), exc_info=True) logging.info("calm daemon stopped")
reply other threads:[~2017-09-30 13:54 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=20170930135433.19753.qmail@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: linkBe 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).