From 0067e12701a0c6d4be9ef154c8b9dba079e1dd27 Mon Sep 17 00:00:00 2001 From: "wangwenyan@fangjia.com" Date: Wed, 4 Apr 2018 13:39:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PriceSystem/CalcCmdReceiver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/PriceSystem/CalcCmdReceiver.py b/PriceSystem/CalcCmdReceiver.py index 89fb4e9..0e068a7 100644 --- a/PriceSystem/CalcCmdReceiver.py +++ b/PriceSystem/CalcCmdReceiver.py @@ -21,7 +21,6 @@ def worker(): cmd = client.lpop(QUEUE) except Exception as ex: cmd = None - print(ex) if cmd is None: time.sleep(60) logger.info("等待接受计算命令") @@ -33,10 +32,9 @@ def worker(): end_time = time.time() logger.info("Calc SUC:" + str(cmd) + "\t计算成功,耗时:" + str(end_time - start_time)) except BaseException as ex: - print(ex) logger.exception(ex) end_time = time.time() - logger.error("Calc ERROR :" + str(cmd) + "\t计算失败,耗时:" + (end_time - start_time)) + logger.error("Calc ERROR :" + str(cmd) + "\t计算失败,耗时:" + str(end_time - start_time)) def format_cmd(cmd):