Use Debug.LogException for NetworkBehaviour error messages (#2803)

This commit is contained in:
Eunseop Shim 2021-07-02 11:10:13 +09:00 committed by GitHub
parent 357ef138c9
commit c0a5dff95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -651,7 +651,7 @@ internal void OnStartServer()
} }
catch (Exception e) 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) 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) 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) 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) 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) 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) catch (Exception e)
{ {
Debug.LogError("Exception in OnStopAuthority:" + e.Message + " " + e.StackTrace); Debug.LogException(e, comp);
} }
} }
} }