Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jun 20, 2024
1 parent 2e9dd3b commit 7b69af9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Fika.Core/Networking/LiteNetLib/Utils/NetPacketProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public void SubscribeNetSerializable<T, TUserData>(
}
catch
{
FikaPlugin.Instance.FikaLogger.LogError("Error when deserializing " + nameof(reference) + " packet.");
FikaPlugin.Instance.FikaLogger.LogError("Error when deserializing " + reference.GetType().Name + " packet.");
}
onReceive(reference, (TUserData)userData);
};
Expand All @@ -283,7 +283,7 @@ public void SubscribeNetSerializable<T>(
}
catch
{
FikaPlugin.Instance.FikaLogger.LogError("Error when deserializing " + nameof(reference) + " packet.");
FikaPlugin.Instance.FikaLogger.LogError("Error when deserializing " + reference.GetType().Name + " packet.");
}
onReceive(reference);
};
Expand Down

0 comments on commit 7b69af9

Please sign in to comment.