mirror of
https://github.com/openziti/zrok.git
synced 2024-11-07 08:44:14 +01:00
logging improvements {for operational reasons} (#50)
This commit is contained in:
parent
9cf3cf6f05
commit
4b77fa785b
@ -68,5 +68,7 @@ func (self *createAccountHandler) Handle(params identity.CreateAccountParams) mi
|
||||
return identity.NewCreateAccountInternalServerError().WithPayload(rest_model_zrok.ErrorMessage(err.Error()))
|
||||
}
|
||||
|
||||
logrus.Infof("account request for '%v' has registration token '%v'", params.Body.Email, ar.Token)
|
||||
|
||||
return identity.NewCreateAccountCreated()
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ func newVerifyHandler(cfg *Config) *verifyHandler {
|
||||
|
||||
func (self *verifyHandler) Handle(params identity.VerifyParams) middleware.Responder {
|
||||
if params.Body != nil {
|
||||
logrus.Infof("received verify request for token '%v'", params.Body.Token)
|
||||
logrus.Debugf("received verify request for token '%v'", params.Body.Token)
|
||||
tx, err := str.Begin()
|
||||
if err != nil {
|
||||
logrus.Errorf("error starting transaction: %v", err)
|
||||
@ -30,7 +30,7 @@ func (self *verifyHandler) Handle(params identity.VerifyParams) middleware.Respo
|
||||
logrus.Errorf("error finding account with token '%v': %v", params.Body.Token, err)
|
||||
return identity.NewVerifyNotFound()
|
||||
}
|
||||
|
||||
|
||||
return identity.NewVerifyOK().WithPayload(&rest_model_zrok.VerifyResponse{Email: ar.Email})
|
||||
} else {
|
||||
logrus.Error("empty verification request")
|
||||
|
Loading…
Reference in New Issue
Block a user