mirror of
https://github.com/openziti/zrok.git
synced 2025-04-18 00:08:37 +02: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()))
|
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()
|
return identity.NewCreateAccountCreated()
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ func newVerifyHandler(cfg *Config) *verifyHandler {
|
|||||||
|
|
||||||
func (self *verifyHandler) Handle(params identity.VerifyParams) middleware.Responder {
|
func (self *verifyHandler) Handle(params identity.VerifyParams) middleware.Responder {
|
||||||
if params.Body != nil {
|
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()
|
tx, err := str.Begin()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Errorf("error starting transaction: %v", err)
|
logrus.Errorf("error starting transaction: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user