Log error when unable to add to store

This commit is contained in:
Torjus Håkestad 2021-09-17 02:14:51 +02:00
parent 64ee43d75b
commit 2b016aecb2

View File

@ -97,7 +97,7 @@ func (hs *HoneypotServer) passwordHandler(ctx ssh.Context, password string) bool
"password", la.Password)
if err := hs.attemptStore.AddAttempt(&la); err != nil {
hs.Logger.Warnf("Error adding attempt to store")
hs.Logger.Warnw("Error adding attempt to store", "error", err)
}
for _, cFunc := range hs.attemptsCallbacks {