Fix log messages being duplicated

Rebase of c498454
This commit is contained in:
Bepis committed 2020-11-06 01:14:28 +11:00
1 parent 25887324b7
commit 574077c23c
1 file changed
+5 -4
+5 -4
View File
@@ -51,10 +51,6 @@ namespace BepInEx.Unity.Bootstrap
{
Logger.Listeners.Add(new UnityLogListener());
if (ConfigUnityLogging.Value)
Logger.Sources.Add(new UnityLogSource());
base.InitializeLoggers();
@@ -69,7 +65,12 @@ namespace BepInEx.Unity.Bootstrap
DiskLogListener.BlacklistedSources.Add("Unity Log");
}
ChainloaderLogHelper.RewritePreloaderLogs();
if (ConfigUnityLogging.Value)
Logger.Sources.Add(new UnityLogSource());
}
public override BaseUnityPlugin LoadPlugin(PluginInfo pluginInfo, Assembly pluginAssembly)