From a610146bbba5f2bf75ff198307232f3b5660ad1e Mon Sep 17 00:00:00 2001 From: Jeremiah Parrack Date: Tue, 18 Jun 2024 15:12:41 -0400 Subject: [PATCH] add improved logging PR --- src/ssm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ssm.rs b/src/ssm.rs index e767b14..30d55cd 100644 --- a/src/ssm.rs +++ b/src/ssm.rs @@ -64,8 +64,8 @@ async fn ssm_get_parameter( "error", true, Some(format!( - "Error calling ssm:GetParameter. Environment variable: {} Path: {} Error: {}", - name, path, error + "Error calling ssm:GetParameter. Environment variable: {} Path: {} Error: {:?}", + name, path, error.into_service_error().meta() )), ); } @@ -112,8 +112,8 @@ async fn ssm_get_parameters_by_path( "error", true, Some(format!( - "Error calling ssm:GetParametersByPath. Environment variable: {} Path: {} Error: {}", - name, path, error + "Error calling ssm:GetParametersByPath. Environment variable: {} Path: {} Error: {:?}", + name, path, error.into_service_error().meta() )), ); break;