Commit 5130c43c authored by ibuler's avatar ibuler

[Update] 去掉无用的信息

parent 20c7b2db
...@@ -267,6 +267,7 @@ class HttpServer: ...@@ -267,6 +267,7 @@ class HttpServer:
def run(self): def run(self):
host = self.flask_app.config["BIND_HOST"] host = self.flask_app.config["BIND_HOST"]
port = self.flask_app.config["HTTPD_PORT"] port = self.flask_app.config["HTTPD_PORT"]
print('Starting websock server at {}:{}'.format(host, port))
self.socket_io.init_app( self.socket_io.init_app(
self.flask_app, self.flask_app,
**self.init_kwargs **self.init_kwargs
......
...@@ -134,9 +134,9 @@ class CommandRecorder(metaclass=Singleton): ...@@ -134,9 +134,9 @@ class CommandRecorder(metaclass=Singleton):
def func(): def func():
while not self.stop_evt.is_set(): while not self.stop_evt.is_set():
data_set = self.queue.mget(self.batch_size, timeout=self.timeout) data_set = self.queue.mget(self.batch_size, timeout=self.timeout)
logger.debug("Session command remain push: {}".format( size = self.queue.qsize()
self.queue.qsize()) if size > 0:
) logger.debug("Session command remain push: {}".format(size))
if not data_set: if not data_set:
continue continue
logger.debug("Send {} commands to server".format(len(data_set))) logger.debug("Send {} commands to server".format(len(data_set)))
......
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