Skip to content

Commit

Permalink
Add more logging for importer
Browse files Browse the repository at this point in the history
  • Loading branch information
JustAman62 committed Aug 26, 2024
1 parent f089db6 commit 0746e0e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions server/GridBattle.Data.Importer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
using GridBattle.Data;
using Microsoft.EntityFrameworkCore;

Console.WriteLine($"----------------");
Console.WriteLine($"Running Importer on {DateTimeOffset.UtcNow}");

var connectionString = Environment.GetEnvironmentVariable("POSTGRES_URL");
var dbOptions = new DbContextOptionsBuilder()
.EnableDetailedErrors()
Expand Down Expand Up @@ -115,3 +118,5 @@
await nytDbContext.SaveChangesAsync();

Console.WriteLine("Import Complete");
Console.WriteLine($"----------------");

0 comments on commit 0746e0e

Please sign in to comment.