mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Use Debug.LogException for NetworkBehaviour error messages (#2803)
This commit is contained in:
parent
357ef138c9
commit
c0a5dff95f
@ -651,7 +651,7 @@ internal void OnStartServer()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStartServer:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -671,7 +671,7 @@ internal void OnStopServer()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStopServer:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -709,7 +709,7 @@ internal void OnStartClient()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStartClient:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -729,7 +729,7 @@ internal void OnStopClient()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStopClient:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -767,7 +767,7 @@ internal void OnStartLocalPlayer()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStartLocalPlayer:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -797,7 +797,7 @@ internal void OnStartAuthority()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStartAuthority:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -817,7 +817,7 @@ internal void OnStopAuthority()
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogError("Exception in OnStopAuthority:" + e.Message + " " + e.StackTrace);
|
||||
Debug.LogException(e, comp);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user