Skip to content

Commit

Permalink
Make Console Log Stacktraces on Error/Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
peeweek committed Feb 3, 2019
1 parent 912e0d3 commit ed5639b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Console/Script/Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ public static void Log(string Command, string Message, LogType type = LogType.Lo
private static void HandleUnityLog(string logString, string stackTrace, LogType type)
{
Log("UNITY", string.Format("[{0}] : {1}", type, logString), type);
if(type == LogType.Error || type == LogType.Exception)
{
Log(stackTrace);
}
}

private int GetCapacity()
Expand Down

0 comments on commit ed5639b

Please sign in to comment.