Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ff50a17
[Mouse Without Borders] - de-linting Logger.cs - using System.Runtime…
mikeclayton Jan 5, 2026
17975ed
[Mouse Without Borders] - de-linting Logger.cs - reorder fields and m…
mikeclayton Jan 5, 2026
26c992f
[Mouse Without Borders] - de-linting Logger.cs - make members #44508
mikeclayton Jan 5, 2026
e88c94a
[Mouse Without Borders] - de-linting Logger.cs - re-order members #44508
mikeclayton Jan 5, 2026
1ff9a78
[Mouse Without Borders] - de-linting Logger.cs - use Conditional("DEB…
mikeclayton Jan 5, 2026
e5887f7
[Mouse Without Borders] - de-linting Logger.cs - rename LogAll -> Log…
mikeclayton Jan 5, 2026
61ee448
[Mouse Without Borders] - de-linting Logger.cs - remove LogCounter fr…
mikeclayton Jan 5, 2026
47bc08e
[Mouse Without Borders] - de-linting Logger.cs - more reordering #44508
mikeclayton Jan 5, 2026
eaf6f7e
[Mouse Without Borders] - de-linting Logger.cs - removed IO + UI side…
mikeclayton Jan 5, 2026
32ab493
[Mouse Without Borders] - de-linting Logger.cs - moved GenerateLog in…
mikeclayton Jan 5, 2026
d612d3c
[Mouse Without Borders] - de-linting Logger.cs - fixing broken tests …
mikeclayton Jan 5, 2026
9fae4bf
[Mouse Without Borders] - Logger.cs - refactored GetStackTrace, added…
mikeclayton Jan 5, 2026
466a079
[Mouse Without Borders] - Logger.cs - refactored DumpObject - #44508
mikeclayton Jan 5, 2026
1f967e6
[Mouse Without Borders] - Logger.cs - refactored PrivateDump - #44508
mikeclayton Jan 5, 2026
99492a6
[Mouse Without Borders] - Logger.cs - refactored DumpObjects - #44508
mikeclayton Jan 5, 2026
8fe2bf8
[Mouse Without Borders] - Logger.cs - minor tweaks - #44508
mikeclayton Jan 5, 2026
55b708c
[Mouse Without Borders] - Logger.cs - moved Encryption.GetDebugInfo t…
mikeclayton Jan 5, 2026
641917d
[Mouse Without Borders] - Logger.cs - misc style tweaks - #44508
mikeclayton Jan 5, 2026
41dfc1b
[Mouse Without Borders] - Logger.cs - misc style tweaks - #44508
mikeclayton Jan 5, 2026
af182df
[Mouse Without Borders] - Logger.cs - removing accidental "throw" - #…
mikeclayton Jan 6, 2026
a625a4e
[Mouse Without Borders] - Logger.cs - moved SeverityLevel into Core a…
mikeclayton Jan 6, 2026
e44ccba
[Mouse Without Borders] - Logger.cs - reorder MaxLogExceptionPerHour …
mikeclayton Jan 6, 2026
abb26b6
Merge branch 'main' into HEAD
mikeclayton Jan 7, 2026
030f180
[Mouse Without Borders] - Logger.cs - fixing broken test - #44508
mikeclayton Jan 7, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/modules/MouseWithoutBorders/App/Core/Encryption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,6 @@ internal static uint Get24BitHash(string st)
return (uint)((hashValue[0] << 23) + (hashValue[1] << 16) + (hashValue[^1] << 8) + hashValue[2]);
}

internal static string GetDebugInfo(string st)
{
return string.IsNullOrEmpty(st) ? st : ((byte)(Common.GetBytesU(st).Sum(value => value) % 256)).ToString(CultureInfo.InvariantCulture);
}

internal static string CreateDefaultKey()
{
return CreateRandomKey();
Expand Down
9 changes: 6 additions & 3 deletions src/modules/MouseWithoutBorders/App/Core/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ private static void WatchDogThread()
{
Process p = Process.GetCurrentProcess();
string procInfo = $"{p.PrivateMemorySize64 / 1024 / 1024}MB, {p.TotalProcessorTime}, {Environment.ProcessorCount}.";
string threadStacks = $"{procInfo} {Thread.DumpThreadsStack()}";
string threadStacks = $"{procInfo}\r\n{Thread.DumpThreadsStack()}\r\n";
Logger.TelemetryLogTrace(threadStacks, SeverityLevel.Error);
break;
}
Expand Down Expand Up @@ -379,7 +379,7 @@ internal static string GetMiniLog(IEnumerable<ControlCollection> optionControls)
log += "=============================================================================================================================\r\n";
log += $"{Application.ProductName} version {Application.ProductVersion}\r\n";

log += $"{Setting.Values.Username}/{Encryption.GetDebugInfo(Encryption.MyKey)}\r\n";
log += $"{Setting.Values.Username}/{Logger.GetChecksum(Encryption.MyKey)}\r\n";
log += $"{Common.MachineName}/{Common.MachineID}/{Common.DesMachineID}\r\n";
log += $"Id: {Setting.Values.DeviceId}\r\n";
log += $"Matrix: {string.Join(",", MachineStuff.MachineMatrix)}\r\n";
Expand Down Expand Up @@ -428,9 +428,12 @@ internal static string GetMiniLog(IEnumerable<ControlCollection> optionControls)
log += Setting.Values.LastPersonalizeLogonScr + "\r\n";
log += "Name2IP =\r\n" + Setting.Values.Name2IP + "\r\n";

// note - this doesn't actually log the last 10 messages - it really concatenates the counts of
// the first 10 unique messages that were logged, which isn't really very useful so we'll remove it
/*
log += "Last 10 trace messages:\r\n";

log += string.Join(Environment.NewLine, Logger.LogCounter.Select(item => $"({item.Value}): {item.Key}").Take(10));
*/

log += "\r\n=============================================================================================================================";

Expand Down
Loading