From 3f1baa61d3edaf31e24b5d32ab59ee87fcc28535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaxsen=20Xu=28=E8=AE=B8=E6=B6=A6=E6=9D=B0=29?= Date: Mon, 20 Dec 2021 19:56:06 +0800 Subject: [PATCH] fix log standard output error --- code/usr/bin/log_service.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/usr/bin/log_service.py b/code/usr/bin/log_service.py index 3edae7d..7ea27fd 100644 --- a/code/usr/bin/log_service.py +++ b/code/usr/bin/log_service.py @@ -136,7 +136,9 @@ class AbstractFormatUtil(object): class LogFormatUtil(AbstractFormatUtil): - def format(self, *args, **kwargs): + @classmethod + def format(cls, *args, **kwargs): + self = LogFormatUtil() self.time = args[0] self.tag = args[1] self.level = args[2]