From 518de24414c1b09bfc93f46d57a151302d83e9c2 Mon Sep 17 00:00:00 2001 From: Leonmmcoset Date: Fri, 13 Mar 2026 21:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E6=A4=8D=E6=9B=B4=E6=96=B0=EF=BC=9A?= =?UTF-8?q?=E6=A1=8C=E9=9D=A2=E7=8E=AF=E5=A2=83=E7=9A=84Event=20Log?= =?UTF-8?q?=E7=A7=BB=E6=A4=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BuildTime.txt | 2 +- GitCommit.txt | 2 +- Gui/ShellComponents/Dock/Dock.cs | 2 +- Gui/ShellComponents/Lock.cs | 2 -- Logger/Logger.cs | 2 ++ System/ShellProcess.cs | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/BuildTime.txt b/BuildTime.txt index e30962e..f107874 100644 --- a/BuildTime.txt +++ b/BuildTime.txt @@ -1 +1 @@ -2026-03-08 22:18:30 \ No newline at end of file +2026-03-13 19:25:57 \ No newline at end of file diff --git a/GitCommit.txt b/GitCommit.txt index f0a20af..81e5edd 100644 --- a/GitCommit.txt +++ b/GitCommit.txt @@ -1 +1 @@ -2138a4b \ No newline at end of file +8041376 \ No newline at end of file diff --git a/Gui/ShellComponents/Dock/Dock.cs b/Gui/ShellComponents/Dock/Dock.cs index aa1e72a..62d29ec 100644 --- a/Gui/ShellComponents/Dock/Dock.cs +++ b/Gui/ShellComponents/Dock/Dock.cs @@ -63,7 +63,7 @@ namespace CMLeonOS.Gui.ShellComponents.Dock window.MoveAndResize((int)(wm.ScreenWidth / 2 - newDockWidth / 2), window.Y, newDockWidth, window.Height); } - window.Clear(Color.FromArgb(130, 202, 255)); + window.Clear(Color.FromArgb(211, 211, 211)); int x = 0; foreach (var icon in Icons) diff --git a/Gui/ShellComponents/Lock.cs b/Gui/ShellComponents/Lock.cs index cea3b95..6ce1369 100644 --- a/Gui/ShellComponents/Lock.cs +++ b/Gui/ShellComponents/Lock.cs @@ -116,8 +116,6 @@ namespace CMLeonOS.Gui.ShellComponents Logger.Logger.Instance.Info("Lock", $"User found: {foundUser.Username}, Admin: {foundUser.Admin}"); string hashedInputPassword = UserSystem.HashPasswordSha256(password); - Logger.Logger.Instance.Info("Lock", $"Password hash: {hashedInputPassword}"); - Logger.Logger.Instance.Info("Lock", $"Stored password hash: {foundUser.Password}"); if (foundUser.Password != hashedInputPassword) { diff --git a/Logger/Logger.cs b/Logger/Logger.cs index 32a09be..ffe9f84 100644 --- a/Logger/Logger.cs +++ b/Logger/Logger.cs @@ -68,6 +68,8 @@ namespace CMLeonOS.Logger { WriteToConsole(entry); } + + CMLeonOS.Logger.Log.Emit(level, source, message); } public void Debug(string source, string message) diff --git a/System/ShellProcess.cs b/System/ShellProcess.cs index b923e8e..8981e3d 100644 --- a/System/ShellProcess.cs +++ b/System/ShellProcess.cs @@ -62,7 +62,7 @@ namespace CMLeonOS public override void Run() { - CMLeonOS.Logger.Logger.Instance.Info($"Command_{command}", $"Executing command: {command} {args}"); + CMLeonOS.Logger.Logger.Instance.Debug($"Command_{command}", $"Executing command: {command} {args}"); try { @@ -73,7 +73,7 @@ namespace CMLeonOS CMLeonOS.Logger.Logger.Instance.Error($"Command_{command}", $"Command failed: {e.ToString()}"); } - CMLeonOS.Logger.Logger.Instance.Info($"Command_{command}", $"Command completed: {command}"); + CMLeonOS.Logger.Logger.Instance.Debug($"Command_{command}", $"Command completed: {command}"); } } }