Skip to content

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

Description

@amitkumar41

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()`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions