Skip to content

Commit

Permalink
log configured rpc host and user
Browse files Browse the repository at this point in the history
  • Loading branch information
remcoros committed Sep 22, 2024
1 parent d5dbdaa commit 786f0ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/PushTX/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,15 @@ await Parallel.ForEachAsync(vins.OfType<JsonObject>(), async (vin, token) =>
* Run it!
*/
var log = app.Services.GetRequiredService<ILogger>();
var settings = app.Services.GetRequiredService<RpcSettings>();

log.LogInformation("Configured RPC server: {Username}@{Host}", settings.Username, settings.Host);

app.Services.GetRequiredService<IHostApplicationLifetime>()
.ApplicationStarted.Register(() => log.LogInformation("Application started."));
.ApplicationStarted.Register(() =>
{
log.LogInformation("Application started.");
});

app.Run();

Expand Down

0 comments on commit 786f0ff

Please sign in to comment.