original_docstring: Log when connection is closed, if needed call callback.
docstring: Log when connection is closed, if needed call callback.
docstring_tokens: Log when connection is closed if needed call callback .
code: def connection_lost(self, exc):
          """Log when connection is closed, if needed call callback."""
          if exc:
              log.exception("ERROR Connection Lost : disconnected due to exception  <{0}>".format(exc))
          else:
              log.debug('ERROR Connection Lost : disconnected because of close/abort.')
          self.suspendAllOperations = True
          sleep(5.0) # i bit of time for the watchdog timers and keep alive loops to self terminate
          if self.disconnect_callback:
              self.disconnect_callback(exc)
code_tokens: def connection_lost ( self , exc ) : if exc : log . exception ( "ERROR Connection Lost : disconnected due to exception  <{0}>" . format ( exc ) ) else : log . debug ( 'ERROR Connection Lost : disconnected because of close/abort.' ) self . suspendAllOperations = True sleep ( 5.0 ) if self . disconnect_callback : self . disconnect_callback ( exc )
short_docstring: Log when connection is closed, if needed call callback.
short_docstring_tokens: Log when connection is closed if needed call callback .
comment: """Log when connection is closed, if needed call callback."""$SEP$# i bit of time for the watchdog timers and keep alive loops to self terminate