Skip to content

Commit

Permalink
Don't call logging.basicConfig
Browse files Browse the repository at this point in the history
Logging needs be configured by application code, while
Deduce is a library (to be imported, not to be run).

Reminiscent of mnmelo/lazy_import#8.
  • Loading branch information
matej-ibis-ai committed Aug 9, 2024
1 parent 8ebfe4a commit a2a0ce6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions deduce/deduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import json
import logging
import os
import sys
import warnings
from pathlib import Path
from typing import Any, Optional, Union
Expand Down Expand Up @@ -38,9 +37,6 @@
_BASE_CONFIG_FILE = _BASE_PATH / "base_config.json"


logging.basicConfig(stream=sys.stdout, level=logging.DEBUG)


class Deduce(dd.DocDeid): # pylint: disable=R0903
"""
Main class for de-identification.
Expand Down

0 comments on commit a2a0ce6

Please sign in to comment.