process-mail logging messages should be sent to a file

Bug #622568 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

It looks like log messages from cronscripts/process-mail.py are just sent to stderr, then sent by cron to error-reports@, then ignored. :-) It would be bett<spiv> poolie: I'm not a LP person, but that sounds good to me.

<spm> I think error-reports mail spam is best for really primitive, exceptional "hey I didn't manage to run at all" errors.
<lifeless> desired behaviour is to log operational stuff to a file
<lifeless> and sysadmins-must-act-on to stderrer if they were written into process-mail.log so the logfile could be synced around etc.

Revision history for this message
Martin Pool (mbp) wrote :

In lib.canonical.launchpad.scripts.logger it looks like the default is configured to be stderr unless a --log-file option is given.

Actually it turns out at the moment we just have eg

<spm> it's more like: */5 * * * * $LP_PY /srv/launchpad.net/production/launchpad/cronscripts/send-bug-notifications.py >> /srv/launchpad.net/production-logs/send-bug-notifications.log 2>&1

Revision history for this message
Martin Pool (mbp) wrote :

Feel free to close this if you're happy with the manual redirection.

Revision history for this message
Gary Poster (gary) wrote :

We have three things we care about to some degree.

- gross failures of the machinery that go to stderr
- critical failures of the machinery that go to a log
- other failures and notes from the machinery that go to a log.

It seems we handle all of those identically now, which does seem a bit problematic.

I'll leave this bug open as a note to make sure that we're happy with how we handle these. I think the manual redirection is OK for now, but it is something we will want to eventually improve.

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.