Skip to content
Merged
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using Unity.Profiling;
using MLAPI.Configuration;
using MLAPI.Profiling;
using MLAPI.Logging;
using UnityEngine;

namespace MLAPI.Messaging
{
Expand Down Expand Up @@ -60,7 +62,19 @@ public void ProcessReceiveQueue(NetworkUpdateStage currentStage, bool isTesting)

if (!isTesting)
{
m_NetworkManager.InvokeRpc(currentQueueItem);
try
{
m_NetworkManager.InvokeRpc(currentQueueItem);
}
catch (Exception ex)
{
Debug.LogException(ex);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if there's an easy way to include a context object here. If no easy way, disregard this comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't worry, you'll (users will) still get the full call-stack in the console with this exception log :)


if (NetworkLog.CurrentLogLevel <= LogLevel.Normal)
{
NetworkLog.LogWarning($"A {currentQueueItem.QueueItemType} threw an exception while executing! Please check Unity logs for more information.");
}
}
Comment thread
LukeStampfli marked this conversation as resolved.
}

ProfilerStatManager.RpcsQueueProc.Record();
Expand Down