Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
patrofimov committed Aug 28, 2024
1 parent 68462d3 commit 6fb0ba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Vostok.ClusterClient.Core/Misc/LoggingUtils.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using System;
using System.Linq;
using System.Linq;
using System.Text;
using Vostok.Clusterclient.Core.Model;

namespace Vostok.Clusterclient.Core.Misc
{
internal static class LoggingUtils
{
public static void AppendQueryString(StringBuilder builder, Uri uri, RequestParametersLoggingSettings querySettings, RequestUrlParser requestUrlParser)
public static void AppendQueryString(StringBuilder builder, RequestParametersLoggingSettings querySettings, RequestUrlParser requestUrlParser)
{
var writtenFirst = false;
foreach (var pair in requestUrlParser.GetQueryParameters().Where(kvp => querySettings.IsEnabledForKey(kvp.Key)))
Expand Down
2 changes: 1 addition & 1 deletion Vostok.ClusterClient.Core/Model/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ internal string ToString([NotNull] RequestParametersLoggingSettings includeQuery

builder.Append(requestUrlParser.Path);

LoggingUtils.AppendQueryString(builder, Url, includeQuery, requestUrlParser);
LoggingUtils.AppendQueryString(builder, includeQuery, requestUrlParser);
}
}
else
Expand Down

0 comments on commit 6fb0ba0

Please sign in to comment.