Merge lp:~thumper/launchpad/bugjam-619555-request-builds-logging into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Tim Penhey on 2010-12-20 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 12116 |
| Proposed branch: | lp:~thumper/launchpad/bugjam-619555-request-builds-logging |
| Merge into: | lp:launchpad |
| Diff against target: |
115 lines (+31/-5) 6 files modified
cronscripts/request_daily_builds.py (+1/-1) lib/canonical/launchpad/scripts/logger.py (+4/-0) lib/lp/code/interfaces/sourcepackagerecipebuild.py (+5/-2) lib/lp/code/model/sourcepackagerecipebuild.py (+5/-1) lib/lp/code/model/tests/test_sourcepackagerecipebuild.py (+13/-0) lib/lp/testing/logger.py (+3/-1) |
| To merge this branch: | bzr merge lp:~thumper/launchpad/bugjam-619555-request-builds-logging |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Edwin Grubbs (community) | code | Approve on 2010-12-15 | |
| Benji York (community) | code* | 2010-12-15 | Approve on 2010-12-15 |
|
Review via email:
|
|||
Commit Message
[r=benji,
Description of the Change
LOSAs have requested that we add extra debugging to record which recipes are having their daily builds requested. This is a pretty trivial change.
| Edwin Grubbs (edwin-grubbs) wrote : | # |
> Nice, straight-forward branch.
>
> The only thing I can suggest is that the conditional in TestLogger.log() is
> unnecessary. If args is an empty tuple, then "msg %= args" will leave msg as
> it was.
The MockLogger has a comment saying that they check whether args is empty, so that msg will not blow up if it contains formatting strings. It looks like logging.
I think that TestLogger should either subclass from FakeLogger, or TestLogger should be removed, and BufferLogger should be used in its place. We're beginning to get as many logger classes as Linux has text editors.
| Tim Penhey (thumper) wrote : | # |
Updated to use the BufferLogger.

Nice, straight-forward branch.
The only thing I can suggest is that the conditional in TestLogger.log() is unnecessary. If args is an empty tuple, then "msg %= args" will leave msg as it was.