Skip to content

Commit

Permalink
Merge pull request eesast#274 from Timothy-Liuxf/installer/log/gramma…
Browse files Browse the repository at this point in the history
…tical-error

fix(log): 🐛 grammatical errors in the log of the installer
  • Loading branch information
DreamEnderKing authored Apr 25, 2024
2 parents f235463 + ff5ac04 commit aea57be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions installer/Model/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,11 @@ protected override void Log(LogLevel logLevel, int eventId, string message)
writer.WriteLine($"[{DateTime.Now:HH:mm:ss.fff}, {eventId}] Warning: {message}");
break;
case LogLevel.Error:
writer.WriteLine("\nError happens!");
writer.WriteLine("\nError occurred!");
writer.WriteLine($"[{DateTime.Now:HH:mm:ss.fff}, {eventId}] Error: {message}\n");
break;
case LogLevel.Critical:
writer.WriteLine("\nCritical error happens!");
writer.WriteLine("\nCritical error occurred!");
writer.WriteLine($"[{DateTime.Now:HH:mm:ss.fff}, {eventId}] Critical: {message}\n");
break;
default:
Expand Down Expand Up @@ -323,11 +323,11 @@ protected override void Log(LogLevel logLevel, string message)
writer.WriteLine($"[{DateTime.Now:HH:mm:ss.fff}, ~] Warning: {message}");
break;
case LogLevel.Error:
writer.WriteLine("\nError happens!");
writer.WriteLine("\nError occurred!");
writer.WriteLine($"[{DateTime.Now:HH:mm:ss.fff}, ~] Error: {message}\n");
break;
case LogLevel.Critical:
writer.WriteLine("\nCritical error happens!");
writer.WriteLine("\nCritical error occurred!");
writer.WriteLine($"[{DateTime.Now:HH:mm:ss.fff}, ~] Critical: {message}\n");
break;
default:
Expand Down

0 comments on commit aea57be

Please sign in to comment.