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

Lot of debug messages in log for each database transaction. How to disable logging #52

Open
amitkumar41 opened this issue Jul 26, 2021 · 0 comments

Comments

@amitkumar41
Copy link

amitkumar41 commented Jul 26, 2021

ENV:
Python 3.8.7
nzalchemy 11.0.2
nzpy 1.15

Messages in the log:
nzpy.Connection[npsdbfordp] - conn_send_handshake_version2() - DEBUG - Backend response: b'N' nzpy.Connection[npsdbfordp] - conn_send_handshake_version2() - DEBUG - Backend response: b'N' nzpy.Connection[npsdbfordp] - conn_send_handshake_version2() - DEBUG - Backend response: b'N' nzpy.Connection[npsdbfordp] - conn_send_handshake_version2() - DEBUG - Backend response: b'N' nzpy.Connection[npsdbfordp] - conn_send_handshake_version2() - DEBUG - Backend response: b'N' nzpy.Connection[npsdbfordp] - conn_send_handshake_version2() - DEBUG - Backend response: b'N' nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Backend response: b'P' nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Response received from backend:blank nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Backend response: b'T' nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Backend response: b'D' nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Backend response: b'C' nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Response received from backend: SELECT nzpy.Connection[npsdbfordp] - connNextResultSet() - DEBUG - Backend response: b'Z'

I am using sqlalchemy to create engine, is there any attribute which needs to be set to disable the logs:
`engine = create_engine(
uri,
case_sensitive=False,
)

provider_connection = engine.connect()`

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

No branches or pull requests

1 participant