From 44dcd7f41bce04b54107d36a0805945a04a68639 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Thu, 14 Dec 2023 22:50:38 +0100 Subject: [PATCH] Improve debug logs --- HyperbolicDownloader/LogCommands.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/HyperbolicDownloader/LogCommands.cs b/HyperbolicDownloader/LogCommands.cs index 88238eb..080b3b5 100644 --- a/HyperbolicDownloader/LogCommands.cs +++ b/HyperbolicDownloader/LogCommands.cs @@ -55,6 +55,11 @@ internal class LogCommands { ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.DarkGray); + if (e.NotificationMessageType == NotificationMessageType.Debug) + { + ConsoleExt.Write("[DEBUG] ", ConsoleColor.DarkYellow); + } + byte[] ipAddressBytes = ipAddress.GetAddressBytes(); Array.Resize(ref ipAddressBytes, 8); @@ -82,6 +87,12 @@ internal class LogCommands else { ConsoleExt.Write($"[{DateTime.Now}] ", ConsoleColor.DarkGray); + + if (e.NotificationMessageType == NotificationMessageType.Debug) + { + ConsoleExt.Write("[DEBUG] ", ConsoleColor.DarkYellow); + } + ConsoleExt.Write(e.Message, ConsoleColor.White); } }