From 143505f762284e362aef90607f6a7fb4ebd8d101 Mon Sep 17 00:00:00 2001 From: Aaro Varis Date: Sun, 23 Mar 2025 00:22:16 +0200 Subject: [PATCH] debug log statements --- BoneSync/Data/Debugger.cs | 2 +- BoneSync/Sync/Components/SyncableNetworking.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/BoneSync/Data/Debugger.cs b/BoneSync/Data/Debugger.cs index c29d997..0f318ed 100644 --- a/BoneSync/Data/Debugger.cs +++ b/BoneSync/Data/Debugger.cs @@ -34,7 +34,7 @@ namespace BoneSync.Data internal static void Debug(string v) { #if DEBUG - Msg(v, ConsoleColor.Gray, 2); + Msg($"[DEBUG] {v}", ConsoleColor.Gray, 2); #endif } } diff --git a/BoneSync/Sync/Components/SyncableNetworking.cs b/BoneSync/Sync/Components/SyncableNetworking.cs index 5001172..f6aec5b 100644 --- a/BoneSync/Sync/Components/SyncableNetworking.cs +++ b/BoneSync/Sync/Components/SyncableNetworking.cs @@ -146,6 +146,7 @@ namespace BoneSync.Sync.Components if (Registered && !isOwner) { _simpleEventQueue.Clear(); + SyncLogger.Debug("Clearing simple event queue for " + _syncId); return; } if (_simpleEventQueue.Count > 0 && Registered && isOwner)