mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-19 15:51:45 +00:00
ManualLogSource: Add string interpolation for Log* overloads; clean up logging
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user