##// END OF EJS Templates
logging: updated hooks deamon logs
dan -
r3934:2f9e92f8 default
parent child Browse files
Show More
@@ -106,11 +106,11 b' class DummyHooksCallbackDaemon(object):'
106 self.hooks_module = Hooks.__module__
106 self.hooks_module = Hooks.__module__
107
107
108 def __enter__(self):
108 def __enter__(self):
109 log.debug('Running dummy hooks callback daemon')
109 log.debug('Running `%s` callback daemon', self.__class__.__name__)
110 return self
110 return self
111
111
112 def __exit__(self, exc_type, exc_val, exc_tb):
112 def __exit__(self, exc_type, exc_val, exc_tb):
113 log.debug('Exiting dummy hooks callback daemon')
113 log.debug('Exiting `%s` callback daemon', self.__class__.__name__)
114
114
115
115
116 class ThreadedHookCallbackDaemon(object):
116 class ThreadedHookCallbackDaemon(object):
@@ -123,11 +123,12 b' class ThreadedHookCallbackDaemon(object)'
123 self._prepare(txn_id=txn_id, host=None, port=port)
123 self._prepare(txn_id=txn_id, host=None, port=port)
124
124
125 def __enter__(self):
125 def __enter__(self):
126 log.debug('Running `%s` callback daemon', self.__class__.__name__)
126 self._run()
127 self._run()
127 return self
128 return self
128
129
129 def __exit__(self, exc_type, exc_val, exc_tb):
130 def __exit__(self, exc_type, exc_val, exc_tb):
130 log.debug('Callback daemon exiting now...')
131 log.debug('Exiting `%s` callback daemon', self.__class__.__name__)
131 self._stop()
132 self._stop()
132
133
133 def _prepare(self, txn_id=None, host=None, port=None):
134 def _prepare(self, txn_id=None, host=None, port=None):
General Comments 0
You need to be logged in to leave comments. Login now