Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
nitpickery - status code >= 500 consistency in names/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
liviriniu committed Apr 20, 2020
1 parent c4ae636 commit 58cde3a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public static Func<HttpContextBase, bool> RequestFilter
/// <summary>
/// When set to Always, form data will be written via an event (using
/// severity from FormDataLoggingLevel). When set to OnlyOnError, this
/// will only be written if the Response has a 500 status.
/// will only be written if the Response has status code >= 500.
/// When set to OnMatch <see cref="ShouldLogPostedFormData"/>
/// is executed to determine if form data is logged.
/// The default is Never. Requires that <see cref="IsEnabled"/> is also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public FormDataLoggingConfigurationBuilder AtLevel(LogEventLevel level)
}

/// <summary>
/// Specify that FormData should be attached to logged events only in case of error (Status > 500)
/// Specify that FormData should be attached to logged events only in case of error (status code >= 500)
/// </summary>
/// <returns>A configuration object to allow chaining</returns>
public FormDataLoggingConfigurationBuilder OnlyOnError()
Expand All @@ -221,7 +221,7 @@ public FormDataLoggingConfigurationBuilder OnlyOnError()
}

/// <summary>
/// Specify that FormData should be attached to logged events only when the provided condistion is true
/// Specify that FormData should be attached to logged events only when the provided condition is true
/// </summary>
/// <param name="matchingFunction">The predicate that defines when FormData should be attached</param>
/// <returns>A configuration object to allow chaining</returns>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public void RequestFiltering()
[InlineData(500, true)]
[InlineData(501, true)]
[InlineData(499, false)]
public void StatusCodeBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError)
public void StatusCodeEqualOrBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError)
{
TestContext.SimulateRequest(httpStatusCode: httpStatusCode);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ public void RequestFiltering()
[InlineData(500, true)]
[InlineData(501, true)]
[InlineData(499, false)]
public void StatusCodeBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError)
public void StatusCodeEqualOrBiggerThan500AreLoggedAsError(int httpStatusCode, bool isLoggedAsError)
{
TestContext.SimulateRequest(httpStatusCode: httpStatusCode);

Expand Down

0 comments on commit 58cde3a

Please sign in to comment.