x
This commit is contained in:
@@ -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
+6
-6
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package core
|
||||
|
||||
var plugin_debug = MakeBucket("plugin_debug")
|
||||
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user