mirror of
https://github.com/Luzifer/vault-otp-ui.git
synced 2024-09-19 17:13:00 +00:00
Log errors in code generation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e521ab10a1
commit
736b31d5b1
5
token.go
5
token.go
@ -215,7 +215,10 @@ func fetchTokenFromKey(client *api.Client, k string, respChan chan *token, wg *s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tok.GenerateCode(pointOfTime)
|
if err = tok.GenerateCode(pointOfTime); err != nil {
|
||||||
|
log.WithError(err).WithField("name", tok.Name).Error("Unable to generate code")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if tok.Code == "" {
|
if tok.Code == "" {
|
||||||
// Nothing ended in us having a code, does not seem to be something for us
|
// Nothing ended in us having a code, does not seem to be something for us
|
||||||
|
Loading…
Reference in New Issue
Block a user