Improve log message

This commit is contained in:
Jack251970 2025-04-09 18:10:44 +08:00
parent d3fdd99e10
commit 8730a5fce8

View file

@ -122,7 +122,7 @@ namespace Flow.Launcher.Core.Plugin
}
catch (Exception e)
{
Context.API.LogException(nameof(JsonRPCPluginV2), "Failed to call reload_data", e);
Context.API.LogException(nameof(JsonRPCPluginV2), $"Failed to call reload_data for plugin {Context.CurrentPluginMetadata.Name}", e);
}
}
@ -140,7 +140,7 @@ namespace Flow.Launcher.Core.Plugin
}
catch (Exception e)
{
Context.API.LogException(nameof(JsonRPCPluginV2), "Failed to call close", e);
Context.API.LogException(nameof(JsonRPCPluginV2), $"Failed to call close for plugin {Context.CurrentPluginMetadata.Name}", e);
}
finally
{