diff --git a/Assets/Mirror/Runtime/NetworkIdentity.cs b/Assets/Mirror/Runtime/NetworkIdentity.cs index 7036a6848..a6283aa59 100644 --- a/Assets/Mirror/Runtime/NetworkIdentity.cs +++ b/Assets/Mirror/Runtime/NetworkIdentity.cs @@ -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); } } }