Closed
Bug 746283
Opened 13 years ago
Closed 13 years ago
sut_tools should support logging from clientproxy multiprocess.
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Callek, Assigned: Callek)
References
Details
Attachments
(1 file, 1 obsolete file)
4.68 KB,
patch
|
bear
:
review+
|
Details | Diff | Splinter Review |
sut_lib should support logging rather than print in more instances. As well as actually log to the clientproxy log when we are called from there.
To do this s/print/log.*/ and add a sut_lib init for multiprocessing logging.
Attachment #615827 -
Flags: review?(bear)
Comment 1•13 years ago
|
||
Comment on attachment 615827 [details] [diff] [review]
[tools] v1
I don't think you need to use a common routine to get the log instance - that is what get_logger() returns.
You should be able to replace your multiprocessingLoggingInit() routine with:
from multiprocessing import get_logger
log = get_logger()
and ensure that log has module scope
Attachment #615827 -
Flags: review?(bear) → review-
Assignee | ||
Comment 2•13 years ago
|
||
After IRC discussion this feels less dirty.
Attachment #615827 -
Attachment is obsolete: true
Attachment #615866 -
Flags: review?(bear)
Comment 3•13 years ago
|
||
Comment on attachment 615866 [details] [diff] [review]
[tools] v2
nit: remove the |if debug:| check, log.debug() does that
but doing this will mean setting the log debug level based on the option
Attachment #615866 -
Flags: review?(bear) → review+
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Mike Taylor [:bear] from comment #3)
> Comment on attachment 615866 [details] [diff] [review]
> [tools] v2
>
> nit: remove the |if debug:| check, log.debug() does that
Per IRC ok from bear, I'm planning to ignore this nit since changing the calling location is a bit scope creeping of making this library log properly.
Assignee | ||
Comment 5•13 years ago
|
||
Assignee | ||
Comment 6•13 years ago
|
||
This deployed
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Product: mozilla.org → Release Engineering
Updated•6 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•