mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-10 10:04:37 +01:00
Add timestamp to TroubleshootingPayload
This commit is contained in:
parent
ac7c4e889a
commit
b9c4c97eba
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,7 @@ public static class Troubleshooting
|
|||
{
|
||||
var payload = new TroubleshootingPayload
|
||||
{
|
||||
Timestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds(),
|
||||
LoadedPlugins = pluginManager?.InstalledPlugins?.Select(x => x.Manifest as LocalPluginManifest)?.OrderByDescending(x => x.InternalName).ToArray(),
|
||||
PluginStates = pluginManager?.InstalledPlugins?.Where(x => !x.IsDev).ToDictionary(x => x.Manifest.InternalName, x => x.IsBanned ? "Banned" : x.State.ToString()),
|
||||
EverStartedLoadingPlugins = pluginManager?.InstalledPlugins.Where(x => x.HasEverStartedLoad).Select(x => x.InternalName).ToList(),
|
||||
|
|
@ -111,6 +112,8 @@ public static class Troubleshooting
|
|||
|
||||
private class TroubleshootingPayload
|
||||
{
|
||||
public long Timestamp { get; set; }
|
||||
|
||||
public LocalPluginManifest[]? LoadedPlugins { get; set; }
|
||||
|
||||
public Dictionary<string, string>? PluginStates { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue