Merge lp:~jtv/launchpad/bug-887063 into lp:launchpad

Proposed by Jeroen T. Vermeulen
Status: Merged
Merged at revision: 14265
Proposed branch: lp:~jtv/launchpad/bug-887063
Merge into: lp:launchpad
Diff against target: 23 lines (+2/-4)
1 file modified
lib/lp/translations/model/translationpackagingjob.py (+2/-4)
To merge this branch: bzr merge lp:~jtv/launchpad/bug-887063
Reviewer Review Type Date Requested Status
Jelmer Vernooij (community) Approve
Review via email: mp+81439@code.launchpad.net

Commit message

Log noise: packaging_translations skipping-merge-for-unsupported-distroseries.

Description of the change

= Summary =

We're getting some silly log noise from packaging_translations: it skips distributions that don't have "full functionality," and when that happens, logs it as a warning. Which results in continual log spam: Skipping merge of unsupported distroseries "Lenny".

== Proposed fix ==

Downgrade to info. We want the error-reports list to be quiet yet interesting. Launchpad not hosting translations for Lenny is not very interesting.

== Pre-implementation notes ==

I asked on #launchpad-dev. No reactions. Silence is assent.

== Implementation details ==

The warning string doesn't seem to occur in any tests (although I am of course running an EC2 test to make sure). So I don't expect to break any.

We don't usually test for log output anyway, but there were times when it was often our easiest way to establish what a script-related class was doing — especially in doctests. Hence always worth checking for.

== Tests ==

At least one pre-existing test covers this code path:

{{{
./bin/test -vvc lp.translations.tests.test_translationpackagingjob -t test_skips_non_ubuntu_distros
}}}

== Demo and Q/A ==

Run the job; watch it not break.

= Launchpad lint =

Checking for conflicts and issues in changed files.

Linting changed files:
  lib/lp/translations/model/translationpackagingjob.py

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/translations/model/translationpackagingjob.py'
2--- lib/lp/translations/model/translationpackagingjob.py 2011-07-31 09:09:22 +0000
3+++ lib/lp/translations/model/translationpackagingjob.py 2011-11-07 11:23:24 +0000
4@@ -26,9 +26,7 @@
5 implements,
6 )
7
8-from lp.services.job.interfaces.job import (
9- IRunnableJob,
10- )
11+from lp.services.job.interfaces.job import IRunnableJob
12 from lp.services.job.runner import BaseRunnableJob
13 from lp.translations.interfaces.translationpackagingjob import (
14 ITranslationPackagingJobSource,
15@@ -94,7 +92,7 @@
16 """See `IRunnableJob`."""
17 logger = logging.getLogger()
18 if not self.distroseries.distribution.full_functionality:
19- logger.warning(
20+ logger.info(
21 'Skipping merge for unsupported distroseries "%s".' %
22 self.distroseries.displayname)
23 return