Commit 5130c43c authored by ibuler's avatar ibuler

[Update] 去掉无用的信息

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