diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 8b2bdd4..dfd7b86 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +#### 1.1.2 - 2019-01-26 +* Use the correct ignored fields in the ResponseLogEnrichrer + #### 1.1.1 - 2019-01-26 * Fixes #1 casting content length to a log event property now works diff --git a/src/Giraffe.SerilogExtensions/AssemblyInfo.fs b/src/Giraffe.SerilogExtensions/AssemblyInfo.fs index a84492e..3c9db68 100644 --- a/src/Giraffe.SerilogExtensions/AssemblyInfo.fs +++ b/src/Giraffe.SerilogExtensions/AssemblyInfo.fs @@ -4,20 +4,20 @@ open System.Reflection [] [] -[] +[] [] -[] -[] +[] +[] [] -[] +[] do () module internal AssemblyVersionInformation = let [] AssemblyTitle = "Giraffe.SerilogExtensions" let [] AssemblyProduct = "Giraffe.SerilogExtensions" - let [] AssemblyVersion = "1.1.1" + let [] AssemblyVersion = "1.1.2" let [] AssemblyMetadata_ReleaseDate = "2019-01-26T00:00:00.0000000" - let [] AssemblyFileVersion = "1.1.1" - let [] AssemblyInformationalVersion = "1.1.1" + let [] AssemblyFileVersion = "1.1.2" + let [] AssemblyInformationalVersion = "1.1.2" let [] AssemblyMetadata_ReleaseChannel = "release" - let [] AssemblyMetadata_GitHash = "36419420a229a63d501862baff82c3269124a68e" + let [] AssemblyMetadata_GitHash = "8da93363afb4acfecc64767c13ce6b7479c2fb2b" diff --git a/src/Giraffe.SerilogExtensions/ResponseLogEnricher.fs b/src/Giraffe.SerilogExtensions/ResponseLogEnricher.fs index dbbfb71..8c78c83 100644 --- a/src/Giraffe.SerilogExtensions/ResponseLogEnricher.fs +++ b/src/Giraffe.SerilogExtensions/ResponseLogEnricher.fs @@ -10,8 +10,8 @@ open Serilog.Events type ResponseLogEnricher(context: HttpContext, config: SerilogConfig, stopwatch: Stopwatch, requestId: string) = interface ILogEventEnricher with member this.Enrich(logEvent: LogEvent, _: ILogEventPropertyFactory) = - let (Choser ignoredRequestFields) = config.IgnoredRequestFields - let included field = not (List.exists ((=) ("Response." + field)) ignoredRequestFields) + let (Choser ignoredResponseFields) = config.IgnoredResponseFields + let included field = not (List.exists ((=) ("Response." + field)) ignoredResponseFields) let anyOf xs = fun x -> List.exists ((=) x) xs let ifEmptyThen y x = if String.IsNullOrWhiteSpace(x) diff --git a/tests/Giraffe.SerilogExtensions.Tests/AssemblyInfo.fs b/tests/Giraffe.SerilogExtensions.Tests/AssemblyInfo.fs index a3a8c1b..15156e7 100644 --- a/tests/Giraffe.SerilogExtensions.Tests/AssemblyInfo.fs +++ b/tests/Giraffe.SerilogExtensions.Tests/AssemblyInfo.fs @@ -4,20 +4,20 @@ open System.Reflection [] [] -[] +[] [] -[] -[] +[] +[] [] -[] +[] do () module internal AssemblyVersionInformation = let [] AssemblyTitle = "Giraffe.SerilogExtensions.Tests" let [] AssemblyProduct = "Giraffe.SerilogExtensions" - let [] AssemblyVersion = "1.1.1" + let [] AssemblyVersion = "1.1.2" let [] AssemblyMetadata_ReleaseDate = "2019-01-26T00:00:00.0000000" - let [] AssemblyFileVersion = "1.1.1" - let [] AssemblyInformationalVersion = "1.1.1" + let [] AssemblyFileVersion = "1.1.2" + let [] AssemblyInformationalVersion = "1.1.2" let [] AssemblyMetadata_ReleaseChannel = "release" - let [] AssemblyMetadata_GitHash = "36419420a229a63d501862baff82c3269124a68e" + let [] AssemblyMetadata_GitHash = "8da93363afb4acfecc64767c13ce6b7479c2fb2b"