Skip to content
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

程序执行时,导入paddle库之后,会将root的logger级别设置为warning #71338

Open
wpjgit opened this issue Feb 28, 2025 · 0 comments

Comments

@wpjgit
Copy link

wpjgit commented Feb 28, 2025

bug描述 Describe the Bug

如下代码执行时,第一次的日志可以打印,第二次就没有了,在第二次打印日志的地方断点调试,发现logger的级别变成warning了

import logging
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("root")
logger.info("11111")
import paddle
logger = logging.getLogger("root")
logger.info("22222")

其他补充信息 Additional Supplementary Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant