Skip to content

Commit e308b89

Browse files
committed
Log string map size
1 parent 68609a9 commit e308b89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Robust.Shared/Serialization/RobustMappedStringSerializer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ private void HandleStringsMessage(MsgMapStrStrings msg)
295295

296296
_stringMapHash = _serverHash;
297297

298-
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings.");
298+
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings ({ByteHelpers.FormatBytes(msg.Package!.Length)}).");
299299

300300
packageStream.Position = 0;
301301
if (EnableCaching)
@@ -439,7 +439,7 @@ private void HandleServerHandshake(MsgMapStrServerHandshake msgMapStr)
439439

440440
_stringMapHash = msgMapStr.Hash!;
441441
LogSzr.Debug($"Read {added} strings from cache {hashStr}.");
442-
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings.");
442+
LogSzr.Debug($"Locked in at {_dict.StringCount} mapped strings ({ByteHelpers.FormatBytes(file.Length)}).");
443443
// ok we're good now
444444
var channel = msgMapStr.MsgChannel;
445445
OnClientCompleteHandshake(_net, channel);

0 commit comments

Comments
 (0)