Closed Bug 746283 Opened 13 years ago Closed 13 years ago

sut_tools should support logging from clientproxy multiprocess.

Categories

(Release Engineering :: General, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Callek, Assigned: Callek)

References

Details

Attachments

(1 file, 1 obsolete file)

Attached patch [tools] v1 (obsolete) — 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 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-
Attached patch [tools] v2Splinter Review
After IRC discussion this feels less dirty.
Attachment #615827 - Attachment is obsolete: true
Attachment #615866 - Flags: review?(bear)
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+
(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.
Depends on: 749863
This deployed
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Depends on: 794017
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: