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

feat(ark): support all logging levels (#8) #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jackjyq
Copy link

@jackjyq jackjyq commented Jul 1, 2024

About this PR:

观察到 ARK_LOG 只能设置 debug 和 info, 这并不足以关闭 log 显示。该 PR 拓展了可配置的 log 类别,目前所有 https://docs.python.org/3/library/logging.html#levels 支持的 level 均可以配置,不分大小写。

Example:

这样就能够关闭 SDK 的 log

os.environ["ARK_LOG"] = "CRITICAL"
from volcenginesdkarkruntime import Ark

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

Successfully merging this pull request may close these issues.

1 participant