提交 87618a13 编写于 作者: L Li Hongzhang

fix logging fstring interpolation

上级 75fe6bcd
......@@ -91,7 +91,7 @@ def _libsmicall(*args):
fname = inspect.stack()[1].function
error_code = getattr(libsmi, fname)(*args)
if error_code != 0:
logger.error(f'{fname} querying failed with error code {error_code}.')
logger.error('%s querying failed with error code %d.', fname, error_code)
return error_code == 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册