ManualLogSource: Add string interpolation for Log* overloads; clean up logging

This commit is contained in:
ghorsington committed 2021-12-21 19:40:15 +02:00
1 parent 4bb48c502e
commit 3fd5d68e3b
9 files changed
+126 -17

No files matched your search

@@ -200,7 +200,8 @@ public class AssemblyPatcher : IDisposable
}
catch (Exception e)
{
Logger.LogError($"Failed to load patchers from type [{patcherPlugin.TypeName}]: {(e is ReflectionTypeLoadException re ? TypeLoader.TypeLoadExceptionToString(re) : e)}");
Logger.Log(LogLevel.Error,
$"Failed to load patchers from type [{patcherPlugin.TypeName}]: {(e is ReflectionTypeLoadException re ? TypeLoader.TypeLoadExceptionToString(re) : e.ToString())}");
}
var assName = ass.GetName();