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

Add additional logging, configuration of log levels, and log pretty printing #9

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

daniel-chambers
Copy link
Collaborator

This PR adds the ability to control the log level via a new --log-level command line arg. The default level remains info.

It also adds new debug level logs that log the request and response bodies of query/mutation/explain requests. This will aid connector development as you can easily see what engine is sending the connector and also what the connector is responding with.

There is also a new --pretty-print-logs command line arg that changes the logging from JSON lines to a more human readable format for using during development. This is off by default.

image

@daniel-chambers daniel-chambers self-assigned this Nov 29, 2023
Copy link
Contributor

@sordina sordina left a comment

Choose a reason for hiding this comment

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

Very useful. Let's do it.

@daniel-chambers daniel-chambers merged commit eb6d00e into main Nov 29, 2023
2 checks passed
@daniel-chambers daniel-chambers deleted the daniel/improve-logging branch November 29, 2023 22:47
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.

2 participants