From c1c5a0fcf132d15679a0c33bc95bbc5cc3451b29 Mon Sep 17 00:00:00 2001 From: ougongchang Date: Fri, 21 Aug 2020 17:29:23 +0800 Subject: [PATCH] fix the pylint error in run.py --- mindinsight/backend/run.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mindinsight/backend/run.py b/mindinsight/backend/run.py index db5a5a4..63d688e 100644 --- a/mindinsight/backend/run.py +++ b/mindinsight/backend/run.py @@ -206,11 +206,15 @@ class GunicornLogger(Logger): error_log_path = _get_error_log_path() os.chmod(access_log_path, stat.S_IREAD | stat.S_IWRITE) os.chmod(error_log_path, stat.S_IREAD | stat.S_IWRITE) + super(GunicornLogger, self).__init__(cfg) def now(self): - """return Log Format""" + """return the log format""" return time.strftime('[%Y-%m-%d-%H:%M:%S %z]') + def setup(self, cfg): + """Rewrite the setup method of Logger, and we don't need to do anything""" + def _get_all_ip_addresses(host): """Get all the accessible IP address.""" -- GitLab