mirror of
https://github.com/safing/portbase
synced 2025-09-02 02:29:59 +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)
|
data, err := marshalRecord(r, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
api.send(opID, dbMsgTypeWarning, err.Error(), nil)
|
api.send(opID, dbMsgTypeWarning, err.Error(), nil)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
api.send(opID, dbMsgTypeOk, r.Key(), data)
|
api.send(opID, dbMsgTypeOk, r.Key(), data)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -10,8 +10,8 @@ func registerModulesEndpoints() error {
|
||||||
Path: "modules/{moduleName:.+}/trigger/{eventName:.+}",
|
Path: "modules/{moduleName:.+}/trigger/{eventName:.+}",
|
||||||
Write: PermitSelf,
|
Write: PermitSelf,
|
||||||
ActionFunc: triggerEvent,
|
ActionFunc: triggerEvent,
|
||||||
Name: "Export Configuration Options",
|
Name: "Trigger Event",
|
||||||
Description: "Returns a list of all registered configuration options and their metadata. This does not include the current active or default settings.",
|
Description: "Triggers an event of an internal module.",
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,17 +53,17 @@ func registerExpertiseLevelOption() {
|
||||||
},
|
},
|
||||||
PossibleValues: []PossibleValue{
|
PossibleValues: []PossibleValue{
|
||||||
{
|
{
|
||||||
Name: "Simple",
|
Name: "Simple Interface",
|
||||||
Value: ExpertiseLevelNameUser,
|
Value: ExpertiseLevelNameUser,
|
||||||
Description: "Hide complex settings and information.",
|
Description: "Hide complex settings and information.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Advanced",
|
Name: "Advanced Interface",
|
||||||
Value: ExpertiseLevelNameExpert,
|
Value: ExpertiseLevelNameExpert,
|
||||||
Description: "Show technical details.",
|
Description: "Show technical details.",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Name: "Developer",
|
Name: "Developer Interface",
|
||||||
Value: ExpertiseLevelNameDeveloper,
|
Value: ExpertiseLevelNameDeveloper,
|
||||||
Description: "Developer mode. Please be careful!",
|
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.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
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue