Browse Source

!557 fix the pylint error in run.py

Merge pull request !557 from ougongchang/fix_pylint
tags/0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
bd764482ae
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      mindinsight/backend/run.py

+ 5
- 1
mindinsight/backend/run.py View File

@@ -206,11 +206,15 @@ class GunicornLogger(Logger):
error_log_path = _get_error_log_path() error_log_path = _get_error_log_path()
os.chmod(access_log_path, stat.S_IREAD | stat.S_IWRITE) os.chmod(access_log_path, stat.S_IREAD | stat.S_IWRITE)
os.chmod(error_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): def now(self):
"""return Log Format"""
"""return the log format"""
return time.strftime('[%Y-%m-%d-%H:%M:%S %z]') 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): def _get_all_ip_addresses(host):
"""Get all the accessible IP address.""" """Get all the accessible IP address."""


Loading…
Cancel
Save