Skip to content

Commit

Permalink
fix: disable logging in argilla
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasKoehneckeAA committed Jun 17, 2024
1 parent 26e5fb6 commit a874938
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import itertools
import logging
import os
from collections.abc import Iterable, Sequence
from typing import (
Expand Down Expand Up @@ -31,6 +32,11 @@ def __init__(
import warnings

warnings.filterwarnings("ignore", module="argilla.*")
# this logger is set on info for some reason
logging.getLogger("argilla.client.feedback.dataset.local.mixins").setLevel(
logging.WARNING
)

rg.init(
api_url=api_url if api_url is not None else os.getenv("ARGILLA_API_URL"),
api_key=api_key if api_key is not None else os.getenv("ARGILLA_API_KEY"),
Expand Down

0 comments on commit a874938

Please sign in to comment.