mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Fix troubleshooting after rebase
This commit is contained in:
parent
2fe8ccb1da
commit
f503d4955a
1 changed files with 5 additions and 7 deletions
|
|
@ -47,27 +47,25 @@ namespace Dalamud
|
|||
/// <summary>
|
||||
/// Log troubleshooting information in a parseable format to Serilog.
|
||||
/// </summary>
|
||||
/// <param name="dalamud">The <see cref="Dalamud"/> instance to read information from.</param>
|
||||
/// <param name="isInterfaceLoaded">Whether or not the interface was loaded.</param>
|
||||
internal static void LogTroubleshooting(Dalamud dalamud, bool isInterfaceLoaded)
|
||||
internal static void LogTroubleshooting()
|
||||
{
|
||||
var interfaceManager = Service<InterfaceManager>.Get();
|
||||
var startInfo = Service<DalamudStartInfo>.Get();
|
||||
var pluginManager = Service<PluginManager>.Get();
|
||||
var configuration = Service<DalamudConfiguration>.Get();
|
||||
var interfaceManager = Service<InterfaceManager>.GetNullable();
|
||||
var pluginManager = Service<PluginManager>.GetNullable();
|
||||
|
||||
try
|
||||
{
|
||||
var payload = new TroubleshootingPayload
|
||||
{
|
||||
LoadedPlugins = pluginManager.InstalledPlugins.Select(x => x.Manifest).ToArray(),
|
||||
LoadedPlugins = pluginManager?.InstalledPlugins?.Select(x => x.Manifest)?.ToArray(),
|
||||
DalamudVersion = Util.AssemblyVersion,
|
||||
DalamudGitHash = Util.GetGitHash(),
|
||||
GameVersion = startInfo.GameVersion.ToString(),
|
||||
Language = startInfo.Language.ToString(),
|
||||
DoDalamudTest = configuration.DoDalamudTest,
|
||||
DoPluginTest = configuration.DoPluginTest,
|
||||
InterfaceLoaded = interfaceManager.IsReady,
|
||||
InterfaceLoaded = interfaceManager?.IsReady ?? false,
|
||||
ThirdRepo = configuration.ThirdRepoList,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue