Skip to content

Commit

Permalink
[BUG] fix circ import with pythonpath is set (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
samster25 authored Oct 6, 2023
1 parent 4dd1e8d commit bb74530
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions daft/logging.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from __future__ import annotations

import sys
from logging import LogRecord


def setup_logger() -> None:
Expand All @@ -16,7 +15,7 @@ def setup_logger() -> None:
logger.add(sys.stderr, level=LOGURU_LEVEL)

class InterceptHandler(logging.Handler):
def filter(self, record: LogRecord) -> bool:
def filter(self, record: logging.LogRecord) -> bool:
parent = super().filter(record)
return parent or record.pathname.startswith("src/")

Expand Down

0 comments on commit bb74530

Please sign in to comment.