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 debug logging in retrievers #28

Merged
merged 4 commits into from
May 7, 2024
Merged

Add debug logging in retrievers #28

merged 4 commits into from
May 7, 2024

Conversation

oskarhane
Copy link
Member

@oskarhane oskarhane commented May 6, 2024

We do not set any basic config on the loggers, but leave that for application developers to keep the log format consistent with their existing ones.

This can be tested by logging DEBUG when running tests:

poetry run pytest tests/unit --log-cli-level=DEBUG

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.
@oskarhane oskarhane requested review from willtai and stellasia May 6, 2024 09:41
Copy link
Contributor

@stellasia stellasia left a comment

Choose a reason for hiding this comment

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

LGTM

@willtai
Copy link
Contributor

willtai commented May 7, 2024

Currently the codebase is still small so this looks good. I think in time we can centralize logging more as the codebase grows larger

Non-blocking comment: I would prefer we use f-strings wherever possible for readability.

@oskarhane oskarhane merged commit 642bae9 into neo4j:main May 7, 2024
7 checks passed
@oskarhane oskarhane deleted the logging branch May 7, 2024 09:20
willtai pushed a commit that referenced this pull request May 7, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 9, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 9, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 13, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 13, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 13, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 13, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 14, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 20, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 20, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
willtai pushed a commit that referenced this pull request May 20, 2024
* Add debug logging in retrievers

We do not set any basic config on the loggers, but leave that for aplication developers to keep the log format consistent with their existing ones.

* Drop value serialization and leave that to the logger

* Add string placeholder in logger message

* Improve log message
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