Skip to content

Commit 460816b

Browse files
author
Niall Langley
committed
Remove debug logging
1 parent 86ab269 commit 460816b

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

DataPipelineTools.Tests/DataLake/DataLakeServiceTests/GetItemsAsyncTests.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public void Given_DirectoryPathWithIncorrectCaseAndIgnoreDirectoryCaseIsTrue_Whe
213213
new object[] { "raw/api", nameof(DataLakeItem.Url), "like:.+raw\\/api.+", 8}, // 6 files + 2 directories
214214
new object[] { "raw/api", nameof(DataLakeItem.IsDirectory), "eq:true", 2},
215215
new object[] { "raw/api", nameof(DataLakeItem.IsDirectory), "eq:false", 6},
216-
new object[] { "raw/api", nameof(DataLakeItem.LastModified), "ge:2021-01-04T14:00:00+00:00", 2},
216+
new object[] { "raw/api", nameof(DataLakeItem.LastModified), "ge:2021-01-04T14:00:00", 2},
217217
};
218218
[TestCaseSource(nameof(Filters))]
219219
public void Given_Filter_Should_ReturnRecordsMatchingFilter(string directory, string filterProperty, string filterExpression, int expectedFileCount)
@@ -224,8 +224,6 @@ public void Given_Filter_Should_ReturnRecordsMatchingFilter(string directory, st
224224

225225
var result = Sut.GetItemsAsync(DatalakeConfig, itemsConfig).Result.ToObject<GetItemsResponse>();
226226

227-
Logger.LogInformation($"Results JSON:\n{JsonConvert.SerializeObject(result, Formatting.Indented)}");
228-
229227
Assert.That(result.FileCount, Is.EqualTo(expectedFileCount));
230228
Assert.That(result.Files, Has.Count.EqualTo(expectedFileCount));
231229
}
@@ -237,7 +235,6 @@ public void Given_Filter_Should_ReturnRecordsMatchingFilter(string directory, st
237235
new object[] { "raw/api/jan", "Some invalid property", "ne:delta_extract_4.json"},
238236
new object[] { "raw/api/jan", string.Empty, "ne:delta_extract_4.json"},
239237
new object[] { "raw/api/jan", null, "ne:delta_extract_4.json"},
240-
241238
new object[] { "raw/api/jan", nameof(DataLakeItem.Name), string.Empty},
242239
new object[] { "raw/api/jan", nameof(DataLakeItem.Name), null},
243240

DataPipelineTools/DataLake/DataLakeService.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ await CheckPathAsync(getItemsConfig.Directory, true) :
133133
var dynamicLinqQueryValue = filter.GetDynamicLinqValue();
134134
_logger.LogInformation($"Applying filter: paths.AsQueryable().Where(\"{dynamicLinqQuery}\", \"{filter.Value}\").ToList()");
135135
paths = paths.AsQueryable().Where(dynamicLinqQuery, dynamicLinqQueryValue).ToList();
136-
137-
_logger.LogInformation($"Current Time Zone: {TimeZoneInfo.Local.StandardName}");
138136
}
139137

140138
// 2: Sort the results

0 commit comments

Comments
 (0)