mirror of https://gitlab.com/ngerakines/tavern.git
Misc cleanup
This commit is contained in:
parent
de1b5d31b1
commit
6b3059b62f
|
@ -1,8 +1,8 @@
|
|||
package metrics
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
|
@ -58,7 +58,7 @@ func (mm MetricsMiddleware) Handle(c *gin.Context) {
|
|||
start := time.Now()
|
||||
c.Next()
|
||||
|
||||
status := fmt.Sprintf("%d", c.Writer.Status())
|
||||
status := strconv.Itoa(c.Writer.Status())
|
||||
endpoint := c.FullPath()
|
||||
method := c.Request.Method
|
||||
|
||||
|
|
Loading…
Reference in New Issue