Skip to content

Commit 3fb9680

Browse files
committed
updated logger
1 parent 52fd656 commit 3fb9680

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ote_sdk/ote_sdk/utils/argument_checks.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
import typing
1010
from abc import ABC, abstractmethod
11-
from os.path import exists
1211
from datetime import datetime
12+
from os.path import exists
1313

1414
import yaml
1515
from numpy import floating
@@ -21,7 +21,9 @@ def raise_value_error_if_parameter_has_unexpected_type(
2121
):
2222
"""Function raises ValueError exception if parameter has unexpected type"""
2323
time_now = datetime.now()
24-
print(f"!_! started checking {parameter_name} with expected type {expected_type} at {time_now}")
24+
print(
25+
f"!_! started checking {parameter_name} with expected type {expected_type} value:{parameter} at {time_now}"
26+
)
2527
if expected_type == float:
2628
expected_type = (int, float, floating)
2729
if not isinstance(parameter, expected_type):
@@ -30,7 +32,7 @@ def raise_value_error_if_parameter_has_unexpected_type(
3032
f"Unexpected type of '{parameter_name}' parameter, expected: {expected_type}, actual: {parameter_type}"
3133
)
3234
time_now = datetime.now()
33-
print(f"!_! finished checking {parameter_name} with expected type {expected_type} value:{parameter} at {time_now}")
35+
print(f"!_! finished checking {parameter_name} with expected type {expected_type}")
3436

3537

3638
def check_nested_elements_type(iterable, parameter_name, expected_type):

0 commit comments

Comments
 (0)