Changeset 492:0a6561d14b64
- Timestamp:
- 10/13/08 18:18:47
(3 months ago)
- Author:
- Brian Warner <warner@allmydata.com>
- branch:
- default
- Message:
logging/publish.py: don't tell gatherer about malformed triggerless logfiles
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r491 |
r492 |
|
| 1 | 1 | 2008-10-13 Brian Warner <warner@allmydata.com> |
|---|
| | 2 | |
|---|
| | 3 | * foolscap/logging/publish.py (IncidentSubscription.catch_up): |
|---|
| | 4 | Don't tell the gatherer about incidents that don't have triggers: |
|---|
| | 5 | these are malformed logfiles, such as the zero-length files that |
|---|
| | 6 | result from a process being terminated before it manages to write |
|---|
| | 7 | anything. |
|---|
| 2 | 8 | |
|---|
| 3 | 9 | * foolscap/logging/log.py (Count): replace itertools.count with a |
|---|
| r478 |
r492 |
|
| 111 | 111 | fn = new[name] |
|---|
| 112 | 112 | trigger = self.publisher.get_incident_trigger(fn) |
|---|
| 113 | | self.observer.callRemoteOnly("new_incident", name, trigger) |
|---|
| | 113 | if trigger: |
|---|
| | 114 | self.observer.callRemoteOnly("new_incident", name, trigger) |
|---|
| 114 | 115 | self.observer.callRemoteOnly("done_with_incident_catchup") |
|---|
| 115 | 116 | |
|---|