summaryrefslogtreecommitdiff
path: root/plugins/checker/plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-19 18:10:39 +0300
committerGitHub <[email protected]>2021-01-19 18:10:39 +0300
commit0ff05b2732b4fd0783f959c94c54d7e39169f979 (patch)
treef50aa894ea4e5b402332f7f4a13b8c50ebb09126 /plugins/checker/plugin.go
parent75ebbaac89ce8ebc3ab8de47b16e137844cfcd8a (diff)
parentd8e42927b63a0b102ce10d465a10d64bb6c02e22 (diff)
Merge pull request #487 from spiral/refactor/server_log_messagesv2.0.0-beta9
refactor(errors, logs): Uniform all errors operations, Update server log level of the server log messages
Diffstat (limited to 'plugins/checker/plugin.go')
-rw-r--r--plugins/checker/plugin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/checker/plugin.go b/plugins/checker/plugin.go
index 95f4f68c..ef184b02 100644
--- a/plugins/checker/plugin.go
+++ b/plugins/checker/plugin.go
@@ -26,7 +26,7 @@ type Plugin struct {
}
func (c *Plugin) Init(log logger.Logger, cfg config.Configurer) error {
- const op = errors.Op("status plugin init")
+ const op = errors.Op("checker_plugin_init")
err := cfg.UnmarshalKey(PluginName, &c.cfg)
if err != nil {
return errors.E(op, errors.Disabled, err)
@@ -63,7 +63,7 @@ func (c *Plugin) Serve() chan error {
}
func (c *Plugin) Stop() error {
- const op = errors.Op("checker stop")
+ const op = errors.Op("checker_plugin_stop")
err := c.server.Shutdown()
if err != nil {
return errors.E(op, err)
@@ -73,7 +73,7 @@ func (c *Plugin) Stop() error {
// Reset named service.
func (c *Plugin) Status(name string) (Status, error) {
- const op = errors.Op("get status")
+ const op = errors.Op("checker_plugin_status")
svc, ok := c.registry[name]
if !ok {
return Status{}, errors.E(op, errors.Errorf("no such service: %s", name))
@@ -112,7 +112,7 @@ type Plugins struct {
const template string = "Service: %s: Status: %d\n"
func (c *Plugin) healthHandler(ctx *fiber.Ctx) error {
- const op = errors.Op("health_handler")
+ const op = errors.Op("checker_plugin_health_handler")
plugins := &Plugins{}
err := ctx.QueryParser(plugins)
if err != nil {