Get duplicate log from bentoml CLI when override with structlog #4833
Unanswered
quannguyenleanh
asked this question in
Q&A
Replies: 1 comment
-
BentoML uses Python's logging config to set stream (see BentoML/src/bentoml/_internal/log.py Line 145 in a91ba14 I'm not entirely familiar with how structlog handle stdin but if so you can check out how to do it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I'm working with BentoML and want to override the logs from the BentoML CLI using structlog. I've configured it so that structlog receives logs from the CLI and prints them to the terminal (as shown below). However, I'm seeing both the BentoML CLI logs and structlog logs being printed at the same time. I only want to receive logs from structlog. Is there a way to configure this? Any guidance would be appreciated. Thanks!
Here's how I set the logs in my service and run bentoml serve to start it.
My
configure_logging
function:Beta Was this translation helpful? Give feedback.
All reactions