Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
rem - doc - Removed printing diagnostics to console
Browse files Browse the repository at this point in the history
---

We've removed printing diagnostic messages to the console.

---

Type: rem
Breaking: False
Doc Required: True
Part: 1/1
  • Loading branch information
AptiviCEO committed Feb 4, 2024
1 parent 9f77ade commit 0ff922f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions GRILO.Bootloader/Boot/Diagnostics/DiagnosticsWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ public static void WriteDiag(DiagnosticsLevel level, string content, params obje
{
if (Config.Instance.DiagnosticMessages)
{
// Print diagnostic messages to the console
if (Config.Instance.PrintDiagnosticMessages)
TextWriterColor.Write($"[{level.ToString()[0]}] {content}", args);

// Print diagnostic messages to the debug file
var writer = File.AppendText(ConfigPaths.GRILODebugPath);
writer.WriteLine(string.Format($"[{level.ToString()[0]}] {content}", args));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ public class ConfigInstance
[JsonProperty("Diagnostic messages", Required = Required.Always)]
public bool DiagnosticMessages { get; set; }

/// <summary>
/// Whether to also print diagnostic messages to the console
/// </summary>
[JsonProperty("Print diagnostic messages to console", Required = Required.Always)]
public bool PrintDiagnosticMessages { get; set; }

/// <summary>
/// Additional bootable folders to scan for bootable applications
/// </summary>
Expand Down

0 comments on commit 0ff922f

Please sign in to comment.