You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The line herelogging.getLogger(__name__).setLevel(logging.CRITICAL) changes the log level from INFO to CRITICAL.
This leads to the first call to update_embeddings being logged, (e.g. "Updating embeddings for all 1 docs without embeddings.."), but all subsequent calls to update_embeddings are not logged.
This is quite misleading, and I assumed there was a bug in the code where my embeddings were not being updated, leading me to spend a few hours investigating.
Expected behavior
Principal of least surprise - don't change log levels as part of a standard function call. We should be able to see these logs on all subsequent calls to update_embeddings, not just the first.
Can we just remove this call to logging.getLogger(__name__).setLevel(logging.CRITICAL) which changes the log level? Why are we doing this in the first place?
Describe the bug
The line here
logging.getLogger(__name__).setLevel(logging.CRITICAL)
changes the log level from INFO to CRITICAL.This leads to the first call to
update_embeddings
being logged, (e.g. "Updating embeddings for all 1 docs without embeddings.."), but all subsequent calls toupdate_embeddings
are not logged.This is quite misleading, and I assumed there was a bug in the code where my embeddings were not being updated, leading me to spend a few hours investigating.
Expected behavior
Principal of least surprise - don't change log levels as part of a standard function call. We should be able to see these logs on all subsequent calls to
update_embeddings
, not just the first.Can we just remove this call to
logging.getLogger(__name__).setLevel(logging.CRITICAL)
which changes the log level? Why are we doing this in the first place?Thanks in advance!
To Reproduce
update_embeddings
FAQ Check
System:
1.22.1
The text was updated successfully, but these errors were encountered: