From 3fb968071d8f0afcef4a6ed03b2d7db0cbf2cdea Mon Sep 17 00:00:00 2001 From: saltykox Date: Mon, 28 Feb 2022 17:05:51 +0300 Subject: [PATCH] updated logger --- ote_sdk/ote_sdk/utils/argument_checks.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ote_sdk/ote_sdk/utils/argument_checks.py b/ote_sdk/ote_sdk/utils/argument_checks.py index 17be5c8e2de..4778896fa19 100644 --- a/ote_sdk/ote_sdk/utils/argument_checks.py +++ b/ote_sdk/ote_sdk/utils/argument_checks.py @@ -8,8 +8,8 @@ import typing from abc import ABC, abstractmethod -from os.path import exists from datetime import datetime +from os.path import exists import yaml from numpy import floating @@ -21,7 +21,9 @@ def raise_value_error_if_parameter_has_unexpected_type( ): """Function raises ValueError exception if parameter has unexpected type""" time_now = datetime.now() - print(f"!_! started checking {parameter_name} with expected type {expected_type} at {time_now}") + print( + f"!_! started checking {parameter_name} with expected type {expected_type} value:{parameter} at {time_now}" + ) if expected_type == float: expected_type = (int, float, floating) if not isinstance(parameter, expected_type): @@ -30,7 +32,7 @@ def raise_value_error_if_parameter_has_unexpected_type( f"Unexpected type of '{parameter_name}' parameter, expected: {expected_type}, actual: {parameter_type}" ) time_now = datetime.now() - print(f"!_! finished checking {parameter_name} with expected type {expected_type} value:{parameter} at {time_now}") + print(f"!_! finished checking {parameter_name} with expected type {expected_type}") def check_nested_elements_type(iterable, parameter_name, expected_type):