Skip to content

Commit

Permalink
feat: enrich logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shalev Avhar committed Nov 12, 2024
1 parent 06196d1 commit b0e5c70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions port_ocean/core/defaults/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit b0e5c70

Please sign in to comment.