Skip to content

Commit

Permalink
Turn off daft prefix filtering by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkzinzow committed Feb 6, 2024
1 parent 53699af commit 34cd7b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions daft/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

# Setup logger if a DAFT_LOGLEVEL environment variable is set.
if "DAFT_LOGLEVEL" in os.environ:
from daft.logging import setup_logger
from daft.logging import _setup_logger

setup_logger(os.environ["DAFT_LOGLEVEL"])
_setup_logger(os.environ["DAFT_LOGLEVEL"])

###
# Set up code coverage for when running code coverage with ray
Expand Down
6 changes: 3 additions & 3 deletions daft/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ def setup_debug_logger(
exclude_prefix: list[str] = [],
daft_only: bool = True,
):
setup_logger("DEBUG", exclude_prefix, daft_only)
_setup_logger("DEBUG", exclude_prefix, daft_only)


def setup_logger(
def _setup_logger(
log_level: str,
exclude_prefix: list[str] = [],
daft_only: bool = True,
daft_only: bool = False,
):
logging.basicConfig(level=log_level)
root_logger = logging.getLogger()
Expand Down

0 comments on commit 34cd7b5

Please sign in to comment.