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

SNOW-1868288: Downgrade cursor.py log level from info to debug #2126

Open
afranzi opened this issue Dec 24, 2024 · 1 comment
Open

SNOW-1868288: Downgrade cursor.py log level from info to debug #2126

afranzi opened this issue Dec 24, 2024 · 1 comment
Assignees
Labels
feature status-pr_pending_merge A PR is made and is under review status-triage_done Initial triage done, will be further handled by the driver team

Comments

@afranzi
Copy link

afranzi commented Dec 24, 2024

What is the current behavior?

The cursor has a log.info which becomes quite noisy when executing dbt-snowflake + it doesn't provide any value at all.
It would be great if we could downgrade the log level from info to debug to reduce noise.
https://github.com/snowflakedb/snowflake-connector-python/blob/main/src/snowflake/connector/cursor.py#L1168

What is the desired behavior?

Downgrade the log level from info to debug to reduce noise in cursor.py

        if not (is_dml or self.is_file_transfer):
            logger.debug(
                "Number of results in first chunk: %s", result_chunks[0].rowcount
            )

How would this improve snowflake-connector-python?

Reduce log noise

References and other background

No response

@sfc-gh-dszmolka sfc-gh-dszmolka self-assigned this Dec 24, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka added status-triage_done Initial triage done, will be further handled by the driver team and removed needs triage labels Dec 24, 2024
@sfc-gh-dszmolka sfc-gh-dszmolka added the status-pr_pending_merge A PR is made and is under review label Dec 24, 2024
@sfc-gh-dszmolka
Copy link
Contributor

hi - thanks for raising this. created #2127, the team will review . Will keep this thread posted.

@sfc-gh-dszmolka sfc-gh-dszmolka changed the title Downgrade cursor.py log level from info to debug SNOW-1868288: Downgrade cursor.py log level from info to debug Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature status-pr_pending_merge A PR is made and is under review status-triage_done Initial triage done, will be further handled by the driver team
Projects
None yet
Development

No branches or pull requests

2 participants