Skip to content

Commit 23cb49a

Browse files
committed
remove debug code
Signed-off-by: Miguel Trejo <armando.trejo.marrufo@gmail.com>
1 parent 88e183e commit 23cb49a

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

sdk/python/feast/online_response.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,6 @@
2222

2323
TIMESTAMP_POSTFIX: str = "__ts"
2424

25-
import logging
26-
import sys
27-
28-
logger = logging.getLogger()
29-
logger.setLevel(logging.DEBUG)
30-
31-
handler = logging.StreamHandler(sys.stdout)
32-
handler.setLevel(logging.DEBUG)
33-
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
34-
handler.setFormatter(formatter)
35-
logger.addHandler(handler)
36-
3725

3826
class OnlineResponse:
3927
"""
@@ -69,12 +57,7 @@ def to_dict(self, include_event_timestamps: bool = False) -> Dict[str, Any]:
6957

7058
for result in self.proto.results:
7159
for idx, feature_ref in enumerate(self.proto.metadata.feature_names.val):
72-
try:
73-
native_type_value = feast_value_type_to_python_type(result.values[idx])
74-
except IndexError as e:
75-
logger.info(f'ERROR -- {e}')
76-
logger.info(f'ONLINE RESPONSE PROTO: {self.proto}')
77-
raise IndexError(e)
60+
native_type_value = feast_value_type_to_python_type(result.values[idx])
7861
if feature_ref not in response:
7962
response[feature_ref] = [native_type_value]
8063
else:

0 commit comments

Comments
 (0)