mirror of
https://github.com/jc21/nginx-proxy-manager.git
synced 2024-08-30 18:22:48 +00:00
Remove debug logs
This commit is contained in:
parent
ceb62fb0f2
commit
e6ae25d081
@ -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))
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user