Skip to content

Commit a610146

Browse files
committed
add improved logging PR
1 parent 9e76e5c commit a610146

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ssm.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ async fn ssm_get_parameter(
6464
"error",
6565
true,
6666
Some(format!(
67-
"Error calling ssm:GetParameter. Environment variable: {} Path: {} Error: {}",
68-
name, path, error
67+
"Error calling ssm:GetParameter. Environment variable: {} Path: {} Error: {:?}",
68+
name, path, error.into_service_error().meta()
6969
)),
7070
);
7171
}
@@ -112,8 +112,8 @@ async fn ssm_get_parameters_by_path(
112112
"error",
113113
true,
114114
Some(format!(
115-
"Error calling ssm:GetParametersByPath. Environment variable: {} Path: {} Error: {}",
116-
name, path, error
115+
"Error calling ssm:GetParametersByPath. Environment variable: {} Path: {} Error: {:?}",
116+
name, path, error.into_service_error().meta()
117117
)),
118118
);
119119
break;

0 commit comments

Comments
 (0)