Changeset 492:0a6561d14b64

Show
Ignore:
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
  • ChangeLog

    r491 r492  
    112008-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. 
    28 
    39        * foolscap/logging/log.py (Count): replace itertools.count with a 
  • foolscap/logging/publish.py

    r478 r492  
    111111            fn = new[name] 
    112112            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) 
    114115        self.observer.callRemoteOnly("done_with_incident_catchup") 
    115116