From b0e5c701a13a79c94de339c9a6d3a1c5e3e31133 Mon Sep 17 00:00:00 2001 From: Shalev Avhar Date: Tue, 12 Nov 2024 13:36:43 +0200 Subject: [PATCH] feat: enrich logs --- port_ocean/core/defaults/common.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/port_ocean/core/defaults/common.py b/port_ocean/core/defaults/common.py index 7dd51ff6a9..1facba88b3 100644 --- a/port_ocean/core/defaults/common.py +++ b/port_ocean/core/defaults/common.py @@ -93,7 +93,9 @@ def get_port_integration_defaults( defaults_dir = base_path / custom_defaults_dir elif is_valid_dir(fallback_dir): logger.info( - f"Could not find custom defaults directory, falling back to {fallback_dir}" + f"Could not find custom defaults directory {custom_defaults_dir}, falling back to {fallback_dir}", + fallback_dir=fallback_dir, + custom_defaults_dir=custom_defaults_dir, ) defaults_dir = fallback_dir else: @@ -102,7 +104,7 @@ def get_port_integration_defaults( ) return None - logger.info(f"Loading defaults from {defaults_dir}") + logger.info(f"Loading defaults from {defaults_dir}", defaults_dir=defaults_dir) default_jsons = {} allowed_file_names = [ field_model.alias for _, field_model in Defaults.__fields__.items()