@gen.coroutine
def FinishServerLog():
 if hasattr(LogBatchPersistor, '_instance'):
  (yield gen.Task(LogBatchPersistor.Instance().close))
  delattr(LogBatchPersistor, '_instance')

@ gen . coroutine def FinishServerLog ( ) : if hasattr ( LogBatchPersistor , '_instance' ) : ( yield gen . Task ( LogBatchPersistor . Instance ( ) . close ) ) delattr ( LogBatchPersistor , '_instance' )
flushes server log to object store with a timeout .