Changeset 490:765195b208c4
- Timestamp:
- 10/13/08 12:25:02
(3 months ago)
- Author:
- Brian Warner <warner@allmydata.com>
- branch:
- default
- Message:
pb.py: add log facility indicators to Listener, Tub setup log.msg calls
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r489 |
r490 |
|
| | 1 | 2008-10-13 Brian Warner <warner@allmydata.com> |
|---|
| | 2 | |
|---|
| | 3 | * foolscap/pb.py (Listener.startFactory): add log facility |
|---|
| | 4 | identifiers |
|---|
| | 5 | (Listener.stopFactory): same |
|---|
| | 6 | (Listener.buildProtocol): same |
|---|
| | 7 | (Tub.getReference): same |
|---|
| | 8 | |
|---|
| 1 | 9 | 2008-09-20 Brian Warner <warner@lothar.com> |
|---|
| 2 | 10 | |
|---|
| r480 |
r490 |
|
| 127 | 127 | |
|---|
| 128 | 128 | def startFactory(self): |
|---|
| 129 | | log.msg("Starting factory %r" % self) |
|---|
| | 129 | log.msg("Starting factory %r" % self, facility="foolscap.listener") |
|---|
| 130 | 130 | return protocol.ServerFactory.startFactory(self) |
|---|
| 131 | 131 | def stopFactory(self): |
|---|
| 132 | | log.msg("Stopping factory %r" % self) |
|---|
| | 132 | log.msg("Stopping factory %r" % self, facility="foolscap.listener") |
|---|
| 133 | 133 | return protocol.ServerFactory.stopFactory(self) |
|---|
| 134 | 134 | |
|---|
| … | … | |
| 138 | 138 | """ |
|---|
| 139 | 139 | lp = log.msg("%s accepting connection from %s" % (self, addr), |
|---|
| 140 | | addr=(addr.host, addr.port)) |
|---|
| | 140 | addr=(addr.host, addr.port), |
|---|
| | 141 | facility="foolscap.listener") |
|---|
| 141 | 142 | proto = self.negotiationClass(logparent=lp) |
|---|
| 142 | 143 | proto.initServer(self) |
|---|
| … | … | |
| 844 | 845 | # queue their request for service once the Tub actually starts |
|---|
| 845 | 846 | log.msg("Tub.getReference(%s) queued until Tub.startService called" |
|---|
| 846 | | % sturdy) |
|---|
| | 847 | % sturdy, facility="foolscap.tub") |
|---|
| 847 | 848 | d = defer.Deferred() |
|---|
| 848 | 849 | self._pending_getReferences.append((d, sturdy)) |
|---|