Commit 536d4dbd authored by liuzheng712's avatar liuzheng712

fix: logging and style update

parent 74e8c91e
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
import abc import abc
import logging import logging
logger = logging.getLogger(__file__) logger = logging.getLogger(__file__)
BUF_SIZE = 1024 BUF_SIZE = 1024
...@@ -14,7 +13,6 @@ END_SENTINEL = object() ...@@ -14,7 +13,6 @@ END_SENTINEL = object()
class ReplayRecorder(metaclass=abc.ABCMeta): class ReplayRecorder(metaclass=abc.ABCMeta):
def __init__(self, app): def __init__(self, app):
self.app = app self.app = app
...@@ -35,11 +33,12 @@ class ReplayRecorder(metaclass=abc.ABCMeta): ...@@ -35,11 +33,12 @@ class ReplayRecorder(metaclass=abc.ABCMeta):
self.session_end(data["session"]) self.session_end(data["session"])
@abc.abstractmethod @abc.abstractmethod
def session_end(self, session_id): def session_start(self, session_id):
print("Session start")
pass pass
@abc.abstractmethod @abc.abstractmethod
def session_start(self, session_id): def session_end(self, session_id):
pass pass
...@@ -74,7 +73,6 @@ class CommandRecorder(metaclass=abc.ABCMeta): ...@@ -74,7 +73,6 @@ class CommandRecorder(metaclass=abc.ABCMeta):
class ServerReplayRecorder(ReplayRecorder): class ServerReplayRecorder(ReplayRecorder):
def record_replay(self, data_set): def record_replay(self, data_set):
""" """
:param data_set: :param data_set:
...@@ -91,7 +89,6 @@ class ServerReplayRecorder(ReplayRecorder): ...@@ -91,7 +89,6 @@ class ServerReplayRecorder(ReplayRecorder):
class ServerCommandRecorder(CommandRecorder): class ServerCommandRecorder(CommandRecorder):
def record_command(self, data_set): def record_command(self, data_set):
if not data_set: if not data_set:
return True return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment