update logging and add pl splash as the main one
All checks were successful
Build / Build Launcher (push) Successful in 2m31s
All checks were successful
Build / Build Launcher (push) Successful in 2m31s
This commit is contained in:
@@ -35,7 +35,7 @@ public static class RoslynReferences
|
||||
var name = a.GetName();
|
||||
if (name.Name == harmonyInfo.Name && name.Version != harmonyInfo.Version)
|
||||
{
|
||||
LogFile.WriteLine(
|
||||
LogFile.Log.Debug(
|
||||
$"WARNING: Multiple Harmony assemblies are loaded. Plugin Loader is using {harmonyInfo} but found {name}");
|
||||
continue;
|
||||
}
|
||||
@@ -60,7 +60,7 @@ public static class RoslynReferences
|
||||
// Prevent other Harmony versions from being loaded
|
||||
if (name.Name == harmonyInfo.Name && name.Version != harmonyInfo.Version)
|
||||
{
|
||||
LogFile.WriteLine(
|
||||
LogFile.Log.Debug(
|
||||
$"WARNING: Multiple Harmony assemblies are loaded. Plugin Loader is using {harmonyInfo} but found {name}");
|
||||
continue;
|
||||
}
|
||||
@@ -81,7 +81,7 @@ public static class RoslynReferences
|
||||
sb.Append("Error: ").Append(e).AppendLine();
|
||||
}
|
||||
|
||||
LogFile.WriteLine(sb.ToString(), false);
|
||||
LogFile.Log.Debug(sb.ToString(), false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -136,14 +136,14 @@ public static class RoslynReferences
|
||||
if (!allReferences.ContainsKey(aName.Name))
|
||||
{
|
||||
var a = Assembly.Load(aName);
|
||||
LogFile.WriteLine("Reference added at runtime: " + a.FullName);
|
||||
LogFile.Log.Debug("Reference added at runtime: " + a.FullName);
|
||||
MetadataReference aRef = MetadataReference.CreateFromFile(a.Location);
|
||||
allReferences[a.GetName().Name] = aRef;
|
||||
}
|
||||
}
|
||||
catch (IOException)
|
||||
{
|
||||
LogFile.WriteLine("WARNING: Unable to find the assembly '" + name + "'!");
|
||||
LogFile.Log.Debug("WARNING: Unable to find the assembly '" + name + "'!");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user