From 4a12a233376b6c611b47834616344a90dc0e5b3b Mon Sep 17 00:00:00 2001 From: maxim-skuvault Date: Wed, 18 Oct 2023 09:41:44 -0400 Subject: [PATCH] GUARD-3162 Revert "Temporarily disable LogGetResponse (#36)" (#37) Revert "Temporarily disable LogGetResponse (#36)" This reverts commit 0f2d0d314ad3dd32b559faee90b0743889b27359. --- src/Global/GlobalAssemblyInfo.cs | 2 +- src/ShopifyAccess/Misc/ShopifyLogger.cs | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/Global/GlobalAssemblyInfo.cs b/src/Global/GlobalAssemblyInfo.cs index a492df6..4f616cf 100644 --- a/src/Global/GlobalAssemblyInfo.cs +++ b/src/Global/GlobalAssemblyInfo.cs @@ -22,4 +22,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[ assembly : AssemblyVersion( "1.10.0.0" ) ] \ No newline at end of file +[ assembly : AssemblyVersion( "1.9.1.0" ) ] \ No newline at end of file diff --git a/src/ShopifyAccess/Misc/ShopifyLogger.cs b/src/ShopifyAccess/Misc/ShopifyLogger.cs index f782881..ab144f7 100644 --- a/src/ShopifyAccess/Misc/ShopifyLogger.cs +++ b/src/ShopifyAccess/Misc/ShopifyLogger.cs @@ -61,10 +61,9 @@ public static void LogGetRequest( Uri requestUri, Mark mark, int timeout ) /// The type of object returned in response from Shopify. Needed to transform the response for logging public static void LogGetResponse< TResponseType >( Uri requestUri, string limit, string jsonResponse, Mark mark, int timeout ) { - //Temporarily disabled due to Production issues - // var contentForLogs = jsonResponse.ToLogContents< TResponseType >(); - // Trace( mark, "GET response\tRequest: {0} with timeout {1}ms\tLimit: {2}\tResponse: {3}", - // requestUri, timeout, limit, contentForLogs ); + var contentForLogs = jsonResponse.ToLogContents< TResponseType >(); + Trace( mark, "GET response\tRequest: {0} with timeout {1}ms\tLimit: {2}\tResponse: {3}", + requestUri, timeout, limit, contentForLogs ); } /// @@ -80,11 +79,10 @@ public static void LogGetResponse< TResponseType >( Uri requestUri, string limit public static void LogGetResponse< TResponseType >( Uri requestUri, string limit, string nextPage, string jsonResponse, Mark mark, int timeout) { - //Temporarily disabled due to Production issues - // jsonResponse = MaskPersonalInfoInShopifyOrders< TResponseType >( jsonResponse ); - // var contentForLogs = jsonResponse.ToLogContents< TResponseType >(); - // Trace( mark, "GET response\tRequest: {0} with timeout {1}ms\tLimit: {2}\tNext Page: {3}\tResponse: {4}", - // requestUri, timeout, limit, nextPage, contentForLogs ); + jsonResponse = MaskPersonalInfoInShopifyOrders< TResponseType >( jsonResponse ); + var contentForLogs = jsonResponse.ToLogContents< TResponseType >(); + Trace( mark, "GET response\tRequest: {0} with timeout {1}ms\tLimit: {2}\tNext Page: {3}\tResponse: {4}", + requestUri, timeout, limit, nextPage, contentForLogs ); } public static void LogUpdateRequest( Uri requestUri, string jsonContent, Mark mark, int timeout )