Skip to content

Commit

Permalink
Temporarily disable LogGetResponse (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-skuvault authored Oct 12, 2023
1 parent 4937103 commit 0f2d0d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 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.9.1.0" ) ]
[ assembly : AssemblyVersion( "1.10.0.0" ) ]
16 changes: 9 additions & 7 deletions src/ShopifyAccess/Misc/ShopifyLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ 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 )
{
var contentForLogs = jsonResponse.ToLogContents< TResponseType >();
Trace( mark, "GET response\tRequest: {0} with timeout {1}ms\tLimit: {2}\tResponse: {3}",
requestUri, timeout, limit, contentForLogs );
//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 );
}

/// <summary>
Expand All @@ -79,10 +80,11 @@ 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)
{
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 );
//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 );
}

public static void LogUpdateRequest( Uri requestUri, string jsonContent, Mark mark, int timeout )
Expand Down

0 comments on commit 0f2d0d3

Please sign in to comment.