Browse Source

Removed trimming on Unity logs, to hopefully preserve formatting

pull/46/head
Anairkoen Schno 5 years ago
parent
commit
4f415904b7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      IPA.Injector/Injector.cs

+ 2
- 2
IPA.Injector/Injector.cs View File

@ -234,8 +234,8 @@ namespace IPA.Injector
Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type) Application.logMessageReceived += delegate (string condition, string stackTrace, LogType type)
{ {
var level = UnityLogRedirector.LogTypeToLevel(type); var level = UnityLogRedirector.LogTypeToLevel(type);
UnityLogProvider.UnityLogger.Log(level, $"{condition.Trim()}");
UnityLogProvider.UnityLogger.Log(level, $"{stackTrace.Trim()}");
UnityLogProvider.UnityLogger.Log(level, $"{condition}");
UnityLogProvider.UnityLogger.Log(level, $"{stackTrace}");
}; };
// need to reinit streams singe Unity seems to redirect stdout // need to reinit streams singe Unity seems to redirect stdout


Loading…
Cancel
Save