Skip to content

Conversation

@kevinjqliu
Copy link
Contributor

Rationale for this change

After #2867, I realized that there's no way to set log level for the CLI.
This PR introduces 2 ways to set log levels, --log-level and PYICEBERG_LOG_LEVEL. Default log level is WARNING

Are these changes tested?

Yes

Are there any user-facing changes?

Yes

) -> None:
logging.basicConfig(
level=getattr(logging, log_level.upper()),
format="%(levelname)s:%(name)s:%(message)s",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a timestamp, line no to this?
format="%(asctime)s:%(levelname)s:%(name)s:%(lineno)d:%(message)s" something like this?
Or better yet structured logging - not sure if that requires a larger change?

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.

3 participants