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

chore: Remove the tedious message about loguru #1770

Merged
merged 1 commit into from Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/argilla/logging.py
Expand Up @@ -81,12 +81,6 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)

if not self.is_available:
logging.getLogger(__name__).warning(
"Cannot find required package for logging.\n"
"Please, install `loguru` by typing:\n"
"pip install loguru\n"
"if you want to enable enhanced logging"
)
self.emit = lambda record: None

def emit(self, record: logging.LogRecord):
Expand All @@ -106,6 +100,7 @@ def emit(self, record: logging.LogRecord):


def configure_logging():

"""Normalizes logging configuration for argilla and its dependencies"""
intercept_handler = LoguruLoggerHandler()
if not intercept_handler.is_available:
Expand Down