Merge lp:~eric97/bzr/mutter-pid into lp:bzr
Status: | Work in progress |
---|---|
Proposed branch: | lp:~eric97/bzr/mutter-pid |
Merge into: | lp:bzr |
Diff against target: |
123 lines (+45/-7) 3 files modified
bzrlib/tests/test_selftest.py (+2/-1) bzrlib/tests/test_trace.py (+29/-4) bzrlib/trace.py (+14/-2) |
To merge this branch: | bzr merge lp:~eric97/bzr/mutter-pid |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
bzr-core | Pending | ||
Review via email: mp+45595@code.launchpad.net |
Commit message
Make mutter() output look more like other .bzr.log entries, by adding PID, absolute date/time, and a pseudo-log-level of "MUTTER".
Description of the change
Make mutter() output look more like other .bzr.log entries, by adding PID, absolute date/time, and a pseudo-log-level of "MUTTER".
Before:
Fri 2011-01-07 23:56:35 -0500
0.053 bazaar version: 2.3.0dev5
0.053 bzr arguments: [u'rocks']
[...]
0.271 encoding stdout as sys.stdout encoding 'UTF-8'
0.271 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.271 return code 0
[ 782] 2011-01-07 23:56:35.885 WARNING: bzr: warning: some compiled extensions could not be loaded; see <https:/
After:
Fri 2011-01-07 23:56:46 -0500
[ 786] 2011-01-07 23:56:46.978 MUTTER: 0.049 bazaar version: 2.3.0dev5
[ 786] 2011-01-07 23:56:46.978 MUTTER: 0.049 bzr arguments: [u'rocks']
[...]
[ 786] 2011-01-07 23:56:47.172 MUTTER: 0.244 encoding stdout as sys.stdout encoding 'UTF-8'
[ 786] 2011-01-07 23:56:47.173 MUTTER: 0.244 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
[ 786] 2011-01-07 23:56:47.173 MUTTER: 0.245 return code 0
[ 786] 2011-01-07 23:56:47.173 WARNING: bzr: warning: some compiled extensions could not be loaded; see <https:/
(N.B.: I've purposely avoided compiling extensions, in order to force bzr to emit a WARNING.)
Unmerged revisions
- 5591. By Eric Siegerman <email address hidden>
-
Doc fix.
- 5590. By Eric Siegerman <email address hidden>
-
Make test_trace.
mutter_ prefix global.
Adapt test_selftest.TestRunner. test_unicode_ test_output_ on_ascii_ stream( )
to the new mutter() format. - 5589. By Eric Siegerman <email address hidden>
-
TestTrace.
_mutter_ prefix now accepts any PID.
We used to require this process's PID, but that would fail should we
ever be asked to match against lines written by a subprocess. - 5588. By Eric Siegerman <email address hidden>
-
Reorganize and document mutter()'s field generation.
- 5587. By Eric Siegerman <email address hidden>
-
Fix formatting of mutter() pid to match what Python logger writes.
- 5586. By Eric Siegerman <email address hidden>
-
Add absolute date/time and "MUTTER" pseudo-log-level to mutter() output.
- 5585. By Eric Siegerman <email address hidden>
-
Factor out TestTrace.
_mutter_ prefix. - 5584. By Eric Siegerman <email address hidden>
-
Prepend "[pid] " to entries output by mutter().
- 5583. By Eric Siegerman <email address hidden>
-
Add test_mutter_
output_ format( ) and test_mutter_ formatting( ).
Logging the pid would certainly be useful.
This format makes thing pretty wide, which might be a concern for ease
of reading the file. Of course in a good editor you can scroll but
not in a bug tracker, and not in everyones' mail client.
So if you could shrink it a bit that would be good. Ideally it would
have more in common with how other thing are logged, not less.
--
Martin