From 32622fee391aa6581809bd244ac11496bd2ad453 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 7 Mar 2026 16:47:05 +0800 Subject: [PATCH] :loud_sound: Add plugin load logging Signed-off-by: Daniel <845765@qq.com> --- kernel/model/plugin.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go index 4436627b3..7e7c208d5 100644 --- a/kernel/model/plugin.go +++ b/kernel/model/plugin.go @@ -20,6 +20,7 @@ import ( "fmt" "os" "path/filepath" + "strings" "sync" "github.com/88250/gulu" @@ -107,6 +108,7 @@ func LoadPetals(frontend string, isPublish bool) (ret []*Petal) { } } + var petalNames []string petals := getPetals() for _, petal := range petals { _, petal.DisplayName, petal.Incompatible, petal.DisabledInPublish, petal.DisallowInstall = bazaar.ParseInstalledPlugin(petal.Name, frontend) @@ -120,7 +122,10 @@ func LoadPetals(frontend string, isPublish bool) (ret []*Petal) { loadCode(petal) ret = append(ret, petal) + petalNames = append(petalNames, petal.Name) } + + logging.LogDebugf("loaded petals [frontend=%s, isPublish=%v, petals=[%s]]", frontend, isPublish, strings.Join(petalNames, ",")) return }