mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
commit
bdefc102e3
4 changed files with 7 additions and 6 deletions
|
@ -346,6 +346,7 @@ func (api *DatabaseAPI) processQuery(opID []byte, q *query.Query) (ok bool) {
|
|||
data, err := marshalRecord(r, true)
|
||||
if err != nil {
|
||||
api.send(opID, dbMsgTypeWarning, err.Error(), nil)
|
||||
continue
|
||||
}
|
||||
api.send(opID, dbMsgTypeOk, r.Key(), data)
|
||||
} else {
|
||||
|
|
|
@ -10,8 +10,8 @@ func registerModulesEndpoints() error {
|
|||
Path: "modules/{moduleName:.+}/trigger/{eventName:.+}",
|
||||
Write: PermitSelf,
|
||||
ActionFunc: triggerEvent,
|
||||
Name: "Export Configuration Options",
|
||||
Description: "Returns a list of all registered configuration options and their metadata. This does not include the current active or default settings.",
|
||||
Name: "Trigger Event",
|
||||
Description: "Triggers an event of an internal module.",
|
||||
}); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
@ -53,17 +53,17 @@ func registerExpertiseLevelOption() {
|
|||
},
|
||||
PossibleValues: []PossibleValue{
|
||||
{
|
||||
Name: "Simple",
|
||||
Name: "Simple Interface",
|
||||
Value: ExpertiseLevelNameUser,
|
||||
Description: "Hide complex settings and information.",
|
||||
},
|
||||
{
|
||||
Name: "Advanced",
|
||||
Name: "Advanced Interface",
|
||||
Value: ExpertiseLevelNameExpert,
|
||||
Description: "Show technical details.",
|
||||
},
|
||||
{
|
||||
Name: "Developer",
|
||||
Name: "Developer Interface",
|
||||
Value: ExpertiseLevelNameDeveloper,
|
||||
Description: "Developer mode. Please be careful!",
|
||||
},
|
||||
|
|
|
@ -99,7 +99,7 @@ func (reg *ResourceRegistry) downloadIndex(ctx context.Context, client *http.Cli
|
|||
log.Warningf("%s: failed to save updated index %s: %s", reg.Name, idx.Path, err)
|
||||
}
|
||||
|
||||
log.Infof("%s: updated index %s", reg.Name, idx.Path)
|
||||
log.Infof("%s: updated index %s with %d entries", reg.Name, idx.Path, len(newIndexData))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue