mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
inline buildlogger
This commit is contained in:
parent
e0ed827885
commit
59a5482a0a
1 changed files with 1 additions and 3 deletions
|
|
@ -22,7 +22,7 @@ public static void Main()
|
|||
BuildConfigRoot();
|
||||
BuildServiceProvider();
|
||||
snapshotService = serviceProvider.GetService<SnapshotService>();
|
||||
using (BuildLogger())
|
||||
using (logger = new Logger(configRoot[AppInsightsKeyConfig]))
|
||||
{
|
||||
CaptureSnapshots(BatchSize);
|
||||
}
|
||||
|
|
@ -41,8 +41,6 @@ private static void BuildServiceProvider()
|
|||
serviceProvider = serviceCollection.BuildServiceProvider();
|
||||
}
|
||||
|
||||
private static Logger BuildLogger() => logger = new Logger(configRoot[AppInsightsKeyConfig]);
|
||||
|
||||
private static void CaptureSnapshots(int batchSize)
|
||||
{
|
||||
logger.Log("Capturing FilterList snapshots...");
|
||||
|
|
|
|||
Loading…
Reference in a new issue