Skip to content

Commit

Permalink
feat(server): add log
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Apr 4, 2023
1 parent 0031a3c commit 6d39cd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ import (
"context"

"github.com/go-faster/simon/internal/oas"
"github.com/go-faster/simon/sdk/zctx"
)

// Server implements oas.Handler.
type Server struct{}

var _ oas.Handler = (*Server)(nil)

func (s Server) Status(_ context.Context) (*oas.Status, error) {
func (s Server) Status(ctx context.Context) (*oas.Status, error) {
zctx.From(ctx).Info("Status")
return &oas.Status{Message: "ok"}, nil
}

Expand Down

0 comments on commit 6d39cd6

Please sign in to comment.