-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
poium.common.logging模块在调用时会出现重复打印日志问题 #21
Comments
这个问题一直没定位到原因,加 |
可以尝试把logging模块封装成单例的类看下是否可以解决问题... |
seldom不能并发启动所有测试用例,有点不好 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
简单粗暴在每个打印日志的方法后面加
removeHandler()
如:
def debug(msg):
_logger.debug("DEBUG " + str(msg))
_logger.removeHandler(_handler)
The text was updated successfully, but these errors were encountered: