Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:loud_sound: Add plugin load logging

Daniel32622fee391a
diff --git a/kernel/model/plugin.go b/kernel/model/plugin.go
index 4436627b3c..7e7c208d59 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
}