Skip to content

Commit

Permalink
Fixing default log format for HttpResponseHeaders
Browse files Browse the repository at this point in the history
  • Loading branch information
soxtoby committed Dec 18, 2022
1 parent 6671539 commit 44fc647
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SlackNet/Logging/LoggingExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http.Headers;
using System.Text.RegularExpressions;
using JetBrains.Annotations;
using SlackNet.Handlers;
Expand Down Expand Up @@ -105,7 +106,7 @@ public static string FullMessage(this ILogEvent logEvent) =>
private static string FormatLogValue(object? value) =>
value switch
{
IEnumerable enumerable and not string => FormatEnumerable(enumerable),
IEnumerable enumerable and not (string or HttpResponseHeaders) => FormatEnumerable(enumerable),
_ => Convert.ToString(value)
};

Expand Down

0 comments on commit 44fc647

Please sign in to comment.