Skip to content

Commit

Permalink
do not propagate log handler
Browse files Browse the repository at this point in the history
GitOrigin-RevId: c7343df6a84f9b4dcd29945484b0164f3ffc2248
  • Loading branch information
johnnygreco committed Sep 25, 2023
1 parent a6f1745 commit ab4e501
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gretel_client/gretel/artifact_fetching.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from gretel_client.projects.records import RecordHandler

logger = logging.getLogger(__name__)
logger.propagate = False
logger.addHandler(logging.StreamHandler(sys.stdout))
logger.setLevel(logging.INFO)

Expand Down
1 change: 1 addition & 0 deletions src/gretel_client/gretel/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from gretel_client.users.users import get_me

logger = logging.getLogger(__name__)
logger.propagate = False
logger.addHandler(logging.StreamHandler(sys.stdout))
logger.setLevel(logging.INFO)

Expand Down

0 comments on commit ab4e501

Please sign in to comment.