提交 bd764482 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!557 fix the pylint error in run.py

Merge pull request !557 from ougongchang/fix_pylint
......@@ -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."""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册