Skip to content

Commit

Permalink
Change level of log message logged on exception to Fatal (#1438)
Browse files Browse the repository at this point in the history
  • Loading branch information
IhateTrains authored Jul 24, 2023
1 parent 42a5833 commit 6ad3679
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ImperatorToCK3/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using commonItems;
using log4net.Core;
using System;
using System.Globalization;

Expand All @@ -21,7 +22,7 @@ public static int Main(string[] args) {
Converter.ConvertImperatorToCK3(converterVersion);
return 0;
} catch (Exception e) {
Logger.Error($"{e.GetType()}: {e.Message}");
Logger.Log(Level.Fatal, $"{e.GetType()}: {e.Message}");
if (e.StackTrace is not null) {
Logger.Debug(e.StackTrace);
}
Expand Down

0 comments on commit 6ad3679

Please sign in to comment.