Skip to content

Commit 108e85a

Browse files
committed
Enabled file only logs
1 parent 37e374b commit 108e85a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

luxonis_ml/utils/logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def setup_logging(
6868
# https://github.com/Delgan/loguru/issues/1172
6969
format=lambda _: "{message}",
7070
backtrace=False,
71+
filter=lambda record: "file_only" not in record["extra"],
7172
)
7273

7374
if file is not None:

0 commit comments

Comments
 (0)