Remove debug logs

This commit is contained in:
Jamie Curnow 2023-05-26 18:46:55 +10:00
parent ceb62fb0f2
commit e6ae25d081
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E
3 changed files with 1 additions and 5 deletions

View File

@ -39,7 +39,6 @@ func GetCertificates() func(http.ResponseWriter, *http.Request) {
// Route: GET /certificates/{certificateID}
func GetCertificate() func(http.ResponseWriter, *http.Request) {
return func(w http.ResponseWriter, r *http.Request) {
logger.Debug("here")
if item := getCertificateFromRequest(w, r); item != nil {
// nolint: errcheck,gosec
item.Expand(getExpandFromContext(r))

View File

@ -44,7 +44,6 @@ func Enforce(permission string) func(http.Handler) http.Handler {
token, claims, err := jwtauth.FromContext(ctx)
if err != nil {
logger.Debug("EnforceError: %+v", err)
h.ResultErrorJSON(w, r, http.StatusUnauthorized, err.Error(), nil)
return
}

View File

@ -3,7 +3,6 @@ package jwt
import (
"npm/internal/database"
"npm/internal/entity"
"npm/internal/logger"
)
var currentKeys KeysModel
@ -48,7 +47,6 @@ func LoadKeys() error {
return err
}
}
logger.Debug("private: %s", currentKeys.PrivateKey)
logger.Debug("public: %s", currentKeys.PublicKey)
return nil
}