Temporary fix console logging not working on Unity 2018+ games

This commit is contained in:
ghorsington committed 2020-06-16 20:27:10 +03:00
1 parent 1831a19627
commit f22e5836ca
1 file changed
+1 -2
+1 -2
View File
@@ -12,9 +12,8 @@ namespace BepInEx.Logging
{
if ((eventArgs.Level & ConfigConsoleDisplayedLevel.Value) == 0)
return;
ConsoleManager.SetConsoleColor(eventArgs.Level.GetConsoleColor());
Console.Write(eventArgs.ToStringLine());
ConsoleManager.ConsoleStream?.Write(eventArgs.ToStringLine());
ConsoleManager.SetConsoleColor(ConsoleColor.Gray);
}