Revision e9c8deab lib/asyncnotifier.py

b/lib/asyncnotifier.py
31 31
except ImportError:
32 32
  import pyinotify
33 33

  
34
from ganeti import daemon
34 35
from ganeti import errors
35 36

  
36 37
# We contributed the AsyncNotifier class back to python-pyinotify, and it's
......
65 66
    self.notifier.process_events()
66 67

  
67 68

  
69
class ErrorLoggingAsyncNotifier(AsyncNotifier,
70
                                daemon.GanetiBaseAsyncoreDispatcher):
71
  """An asyncnotifier that can survive errors in the callbacks.
72

  
73
  We define this as a separate class, since we don't want to make AsyncNotifier
74
  diverge from what we contributed upstream.
75

  
76
  """
77

  
78

  
68 79
class SingleFileEventHandler(pyinotify.ProcessEvent):
69 80
  """Handle modify events for a single file.
70 81

  

Also available in: Unified diff