Skip to content

Commit

Permalink
fix: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsee committed May 25, 2024
1 parent 49bb471 commit 035cc94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BSH.Main/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ static class Program
public static void Main(string[] args)
{
Log.Logger = new LoggerConfiguration().ReadFrom.AppSettings().CreateLogger();
Log.Information($"{APP_TITLE} {CurrentVersion} started.");
Log.Information("{APP_TITLE} {CurrentVersion} started.", APP_TITLE, CurrentVersion);

// set current culture
Application.EnableVisualStyles();
Expand Down Expand Up @@ -95,7 +95,7 @@ private static void AutoUpdater_CheckForUpdateEvent(UpdateInfoEventArgs args)
{
if (!args.IsUpdateAvailable)
{
Log.Information("No updates founds; Current version: {}", CurrentVersion);
Log.Information("No updates founds; Current version: {CurrentVersion}", CurrentVersion);

MessageBox.Show(Resources.MSG_NO_UPDATE_FOUND_TEXT, Resources.MSG_NO_UPDATE_FOUND_TITLE, MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
Expand Down

0 comments on commit 035cc94

Please sign in to comment.