mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-04-21 19:24:00 +00:00
移植更新:桌面环境的Event Log移植功能
This commit is contained in:
@@ -1 +1 @@
|
|||||||
2026-03-08 22:18:30
|
2026-03-13 19:25:57
|
||||||
@@ -1 +1 @@
|
|||||||
2138a4b
|
8041376
|
||||||
@@ -63,7 +63,7 @@ namespace CMLeonOS.Gui.ShellComponents.Dock
|
|||||||
window.MoveAndResize((int)(wm.ScreenWidth / 2 - newDockWidth / 2), window.Y, newDockWidth, window.Height);
|
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;
|
int x = 0;
|
||||||
foreach (var icon in Icons)
|
foreach (var icon in Icons)
|
||||||
|
|||||||
@@ -116,8 +116,6 @@ namespace CMLeonOS.Gui.ShellComponents
|
|||||||
Logger.Logger.Instance.Info("Lock", $"User found: {foundUser.Username}, Admin: {foundUser.Admin}");
|
Logger.Logger.Instance.Info("Lock", $"User found: {foundUser.Username}, Admin: {foundUser.Admin}");
|
||||||
|
|
||||||
string hashedInputPassword = UserSystem.HashPasswordSha256(password);
|
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)
|
if (foundUser.Password != hashedInputPassword)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -68,6 +68,8 @@ namespace CMLeonOS.Logger
|
|||||||
{
|
{
|
||||||
WriteToConsole(entry);
|
WriteToConsole(entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CMLeonOS.Logger.Log.Emit(level, source, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Debug(string source, string message)
|
public void Debug(string source, string message)
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ namespace CMLeonOS
|
|||||||
|
|
||||||
public override void Run()
|
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
|
try
|
||||||
{
|
{
|
||||||
@@ -73,7 +73,7 @@ namespace CMLeonOS
|
|||||||
CMLeonOS.Logger.Logger.Instance.Error($"Command_{command}", $"Command failed: {e.ToString()}");
|
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}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user