This commit is contained in:
1-6
2023-07-14 13:54:20 +08:00
parent 7777fb73cd
commit a15c68055f
9 changed files with 29 additions and 19 deletions
+1 -1
View File
@@ -8,6 +8,6 @@
</head>
<body>
<div id="root"></div>
<script src="/admin/umi.c7d1e869.js"></script>
<script src="/admin/umi.9a5ad664.js"></script>
</body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
View File
@@ -40,6 +40,7 @@ type Function struct {
Carry bool `json:"carry"`
Messages interface{} `json:"messages"`
Classes []string `json:"classes"`
Debug bool `json:"debug"`
}
type Filter struct {
BlackMode bool
+3
View File
@@ -0,0 +1,3 @@
package core
var plugin_debug = MakeBucket("plugin_debug")
+5
View File
@@ -73,6 +73,11 @@ func (c *Console) Debug(v ...interface{}) {
if len(v) == 0 {
return
}
if c.UUID != "" {
if plugin_debug.GetString(c.UUID) != "b:true" {
return
}
}
log := utils.FormatLog(v[0], v[1:]...)
logs.Debug(log)
Broadcast2WebUser(log, "debug")
+1
View File
@@ -310,6 +310,7 @@ func initWebPluginList() {
if fc[j].Running {
rr.Data[i].Running = true
}
rr.Data[i].Debug = plugin_debug.GetString(rr.Data[i].UUID) == "b:true"
}
}
rr.Data[i].Description = parseReply2(rr.Data[i].Description)