From d7fdba2afb542a6b4f0d48a03c3a6b5a8850ee6d Mon Sep 17 00:00:00 2001 From: shenshuo <191715030@qq.com> Date: Fri, 16 Aug 2024 23:29:55 +0800 Subject: [PATCH] =?UTF-8?q?2024=E5=B9=B48=E6=9C=8816=E6=97=A5=20=20?= =?UTF-8?q?=E5=B1=8F=E8=94=BDheaders=E6=95=B0=E6=8D=AE01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mg/subscribe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mg/subscribe.py b/mg/subscribe.py index 04997be..cecb632 100644 --- a/mg/subscribe.py +++ b/mg/subscribe.py @@ -92,9 +92,9 @@ def process_message(msg_id, fields): start_time = log_data_dict.get('start_time') start_time = int(start_time) / 1000 times = datetime.datetime.fromtimestamp(start_time) + log_data_dict['start_time'] = times except Exception as err: - logging.error(f"datetime.datetime.fromtimestamp {start_time} {err}") - log_data_dict['start_time'] = times + logging.error(f"datetime.datetime.fromtimestamp {err}") # logging.info(log_data_dict) return log_data_dict