Skip to content

Commit

Permalink
fix: use logger instead of print
Browse files Browse the repository at this point in the history
  • Loading branch information
zabarn committed Oct 22, 2024
1 parent 70e6c4f commit 2a6c4d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sdk/python/feast/infra/passthrough_provider.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from datetime import datetime, timedelta
import logging
from typing import Any, Callable, Dict, List, Mapping, Optional, Sequence, Tuple, Union

import pandas as pd
Expand Down Expand Up @@ -37,6 +38,8 @@
make_tzaware,
)

logger = logging.getLogger(__name__)

DEFAULT_BATCH_SIZE = 10_000


Expand Down Expand Up @@ -319,7 +322,7 @@ def materialize_single_feature_view(
), f"Unexpected type for {feature_view.name}: {type(feature_view)}"

if getattr(config.online_store, "lazy_table_creation", False):
print(
logger.info(
f"Online store {config.online_store.__class__.__name__} supports lazy table creation and it is enabled"
)

Expand All @@ -332,7 +335,7 @@ def materialize_single_feature_view(
partial=True,
)
else:
print(
logger.info(
f"Online store {config.online_store.__class__.__name__} does not support lazy table creation or it is disabled"
)

Expand Down

0 comments on commit 2a6c4d6

Please sign in to comment.