Skip to content

Commit

Permalink
GUARD-3162 Revert "Temporarily disable LogGetResponse (#36)" (#37)
Browse files Browse the repository at this point in the history
Revert "Temporarily disable LogGetResponse (#36)"

This reverts commit 0f2d0d3.
  • Loading branch information
maxim-skuvault authored Oct 18, 2023
1 parent 0f2d0d3 commit 4a12a23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Global/GlobalAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[ assembly : AssemblyVersion( "1.10.0.0" ) ]
[ assembly : AssemblyVersion( "1.9.1.0" ) ]
16 changes: 7 additions & 9 deletions src/ShopifyAccess/Misc/ShopifyLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ public static void LogGetRequest( Uri requestUri, Mark mark, int timeout )
/// <typeparam name="TResponseType">The type of object returned in response from Shopify. Needed to transform the response for logging</typeparam>
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 );
}

/// <summary>
Expand All @@ -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 )
Expand Down

0 comments on commit 4a12a23

Please sign in to comment.