mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 14:57:45 +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>
|
/// <summary>
|
||||||
/// Log troubleshooting information in a parseable format to Serilog.
|
/// Log troubleshooting information in a parseable format to Serilog.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dalamud">The <see cref="Dalamud"/> instance to read information from.</param>
|
internal static void LogTroubleshooting()
|
||||||
/// <param name="isInterfaceLoaded">Whether or not the interface was loaded.</param>
|
|
||||||
internal static void LogTroubleshooting(Dalamud dalamud, bool isInterfaceLoaded)
|
|
||||||
{
|
{
|
||||||
var interfaceManager = Service<InterfaceManager>.Get();
|
|
||||||
var startInfo = Service<DalamudStartInfo>.Get();
|
var startInfo = Service<DalamudStartInfo>.Get();
|
||||||
var pluginManager = Service<PluginManager>.Get();
|
|
||||||
var configuration = Service<DalamudConfiguration>.Get();
|
var configuration = Service<DalamudConfiguration>.Get();
|
||||||
|
var interfaceManager = Service<InterfaceManager>.GetNullable();
|
||||||
|
var pluginManager = Service<PluginManager>.GetNullable();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var payload = new TroubleshootingPayload
|
var payload = new TroubleshootingPayload
|
||||||
{
|
{
|
||||||
LoadedPlugins = pluginManager.InstalledPlugins.Select(x => x.Manifest).ToArray(),
|
LoadedPlugins = pluginManager?.InstalledPlugins?.Select(x => x.Manifest)?.ToArray(),
|
||||||
DalamudVersion = Util.AssemblyVersion,
|
DalamudVersion = Util.AssemblyVersion,
|
||||||
DalamudGitHash = Util.GetGitHash(),
|
DalamudGitHash = Util.GetGitHash(),
|
||||||
GameVersion = startInfo.GameVersion.ToString(),
|
GameVersion = startInfo.GameVersion.ToString(),
|
||||||
Language = startInfo.Language.ToString(),
|
Language = startInfo.Language.ToString(),
|
||||||
DoDalamudTest = configuration.DoDalamudTest,
|
DoDalamudTest = configuration.DoDalamudTest,
|
||||||
DoPluginTest = configuration.DoPluginTest,
|
DoPluginTest = configuration.DoPluginTest,
|
||||||
InterfaceLoaded = interfaceManager.IsReady,
|
InterfaceLoaded = interfaceManager?.IsReady ?? false,
|
||||||
ThirdRepo = configuration.ThirdRepoList,
|
ThirdRepo = configuration.ThirdRepoList,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue