未验证 提交 9b9d52e0 编写于 作者: 0 0x45f 提交者: GitHub

dont show warn msg default (#39730)

上级 cdf05dfc
...@@ -143,9 +143,10 @@ class TranslatorLogger(object): ...@@ -143,9 +143,10 @@ class TranslatorLogger(object):
self._output_to_stdout('ERROR: ' + msg, *args) self._output_to_stdout('ERROR: ' + msg, *args)
def warn(self, msg, *args, **kwargs): def warn(self, msg, *args, **kwargs):
self.logger.warning(msg, *args, **kwargs) if self.verbosity_level != -1:
if self.need_to_echo_log_to_stdout: self.logger.warning(msg, *args, **kwargs)
self._output_to_stdout('WARNING: ' + msg, *args) if self.need_to_echo_log_to_stdout:
self._output_to_stdout('WARNING: ' + msg, *args)
def log(self, level, msg, *args, **kwargs): def log(self, level, msg, *args, **kwargs):
if self.has_verbosity(level): if self.has_verbosity(level):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册