Log string map size

This commit is contained in:
PJB3005
2025-12-22 17:56:16 +01:00
parent 68609a94d8
commit e308b89fe6

View File

@@ -295,7 +295,7 @@ namespace Robust.Shared.Serialization
_stringMapHash = _serverHash;
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings.");
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings ({ByteHelpers.FormatBytes(msg.Package!.Length)}).");
packageStream.Position = 0;
if (EnableCaching)
@@ -439,7 +439,7 @@ namespace Robust.Shared.Serialization
_stringMapHash = msgMapStr.Hash!;
LogSzr.Debug($"Read {added} strings from cache {hashStr}.");
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings.");
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings ({ByteHelpers.FormatBytes(file.Length)}).");
// ok we're good now
var channel = msgMapStr.MsgChannel;
OnClientCompleteHandshake(_net, channel);