Skip to content

Commit

Permalink
Change default logging level to Warning, minor improvement of RegexEx…
Browse files Browse the repository at this point in the history
…tensions.TryGetFirstMatch
  • Loading branch information
aannenko committed Dec 6, 2024
1 parent 3a9017e commit 9322120
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void TryGetFirstMatch_WhenGivenNonMatchingSpan_ReturnsFalseAndEmptyMatchR
Assert.Multiple(() =>
{
Assert.That(result, Is.False);
Assert.That(range, Is.EqualTo(Range.EndAt(0)));
Assert.That(range, Is.EqualTo(default(Range)));
});
}

Expand Down
6 changes: 3 additions & 3 deletions src/TransmissionManager.Api/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning",
"Microsoft.EntityFrameworkCore.Database.Command": "Warning"
"Default": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"TransmissionManager": "Information"
}
},
"AllowedHosts": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static bool TryGetFirstMatch(this Regex regex, ReadOnlySpan<char> span, o
return true;
}

matchRange = Range.EndAt(0);
matchRange = default;
return false;
}
}

0 comments on commit 9322120

Please sign in to comment.