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

Python logging level is set to ERROR, which leads to custom code's logging didn't work. #20

Closed
sean-wade opened this issue Aug 7, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sean-wade
Copy link

No description provided.

@inisis inisis self-assigned this Aug 7, 2024
@inisis inisis added the bug Something isn't working label Aug 7, 2024
@inisis
Copy link
Owner

inisis commented Aug 7, 2024

minimal env to reproduce

import logging

logging.basicConfig(level=logging.INFO)

logger = logging.getLogger(__name__)
logger.info("This is an info message")

from onnxslim.utils import init_logging

init_logging(False)

logger.info("This is an info message")

@inisis inisis closed this as completed Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants