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

dont show warn msg default (#39730)

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