Skip to content

Commit

Permalink
imp - Move addon init messages to debug
Browse files Browse the repository at this point in the history
---

We've moved the addon initialization messages to the debugger as it looks like it's more diagnostics-oriented, but we'll keep reporting the failures.

---

Type: imp
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Jun 20, 2024
1 parent c2f0373 commit 510e210
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/Nitrocid/Kernel/Extensions/AddonTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ internal static void ProcessAddon(string addon, ModLoadPriority type, int curren
DebugWriter.WriteDebug(DebugLevel.W, "Skipping addon entry {0} because of conflicts with the already-loaded addon in the queue [{1}]...", addon, addonPath);
return;
}
SplashReport.ReportProgress($"[{current}/{length}] " + Translate.DoTranslation("Initializing kernel addon") + " {0}...", Path.GetFileName(addon));
DebugWriter.WriteDebug(DebugLevel.I, $"[{current}/{length}] Initializing kernel addon {Path.GetFileName(addon)}...");
probedAddons.Add(addonPath);
AssemblyLookup.baseAssemblyLookupPaths.Add(addon);
var asm = Assembly.LoadFrom(addonPath);
Expand All @@ -176,15 +176,15 @@ internal static void ProcessAddon(string addon, ModLoadPriority type, int curren
}
catch (Exception ex)
{
SplashReport.ReportProgress($"[{current}/{length}] " + Translate.DoTranslation("Failed to start kernel addon") + " {0}.", addonInstance.AddonName);
SplashReport.ReportProgressError($"[{current}/{length}] " + Translate.DoTranslation("Failed to start kernel addon") + " {0}.", addonInstance.AddonName);
DebugWriter.WriteDebug(DebugLevel.E, "Failed to start addon {0}. {1}", addon, ex.Message);
DebugWriter.WriteDebugStackTrace(ex);
}
}
}
catch (Exception ex)
{
SplashReport.ReportProgress($"[{current}/{length}] " + Translate.DoTranslation("Failed to initialize kernel addon") + " {0}.", Path.GetFileName(addon));
SplashReport.ReportProgressError($"[{current}/{length}] " + Translate.DoTranslation("Failed to initialize kernel addon") + " {0}.", Path.GetFileName(addon));
DebugWriter.WriteDebug(DebugLevel.E, "Failed to load addon {0}. {1}", addon, ex.Message);
DebugWriter.WriteDebugStackTrace(ex);
}
Expand Down

0 comments on commit 510e210

Please sign in to comment.