~james-w/python-oops-tools/prod-deploy

« back to all changes in this revision

Viewing changes to src/oopstools/scripts/prune.py

  • Committer: Tarmac
  • Author(s): James Westby
  • Date: 2012-12-05 18:15:47 UTC
  • mfrom: (48.2.1 decode-reports)
  • Revision ID: launchpad@pqm.canonical.com-20121205181547-j4spyy5u6y04suhj
Decode the report when reading it to send the email.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
                    'One of options %s must be supplied' % (optnames,))
88
88
    needed('project', 'projectgroup')
89
89
    logging.basicConfig(
90
 
        filename='prune.log', filemode='w', level=logging.DEBUG)
 
90
        filename='logs/prune.log', filemode='w', level=logging.DEBUG)
91
91
    one_week = datetime.timedelta(weeks=1)
92
92
    one_day = datetime.timedelta(days=1)
93
93
    # Only prune OOPS reports more than one week old.