Added context.Context to stop and correctly stop metrics now

This commit is contained in:
Pablu23
2025-10-15 13:27:09 +02:00
parent f4ca559a26
commit e90c211d0f
5 changed files with 26 additions and 12 deletions

View File

@@ -1,6 +1,7 @@
package middleware
import (
"context"
"net/http"
"time"
@@ -11,7 +12,7 @@ import (
type RequestLogger struct{}
func (_ *RequestLogger) Stop() {
func (_ *RequestLogger) Stop(ctx context.Context) {
log.Info().Msg("Stopped Logging")
}