Skip to content

Commit 8a3f548

Browse files
committed
Improved log messages
1 parent e3620ea commit 8a3f548

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/Exceptionless.DateTimeExtensions.Tests/FormatParsers/PartParsers/PartParserTestsBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static PartParserTestsBase() {
1616
}
1717

1818
public void ValidateInput(IPartParser parser, string input, bool isUpperLimit, DateTimeOffset? expected) {
19-
_logger.Info(String.Format("Now: {0}", _now));
19+
_logger.Info(String.Format("Input: {0}, Now: {1}, IsUpperLimit: {2}, Expected: {3}", input, _now, isUpperLimit, expected));
2020
var match = parser.Regex.Match(input);
2121
if (!match.Success) {
2222
Assert.Null(expected);

test/Exceptionless.DateTimeExtensions.Tests/FormatParsers/SingleTimeRelationFormatParserTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using Exceptionless.DateTimeExtensions.FormatParsers;
4+
using Foundatio.Logging;
45
using Xunit;
56
using Xunit.Abstractions;
67

@@ -11,6 +12,7 @@ public SingleTimeRelationFormatParserTests(ITestOutputHelper output) : base(outp
1112
[Theory]
1213
[MemberData(nameof(Inputs))]
1314
public void ParseInput(string input, DateTime? start, DateTime? end) {
15+
_logger.Info("Input: {0}", input);
1416
ValidateInput(new SingleTimeRelationFormatParser(), input, start, end);
1517
}
1618

0 commit comments

Comments
 (0)