From 2b016aecb215ed52389d839885b8f14e49a31504 Mon Sep 17 00:00:00 2001 From: = Date: Fri, 17 Sep 2021 02:14:51 +0200 Subject: [PATCH] Log error when unable to add to store --- honeypot/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/honeypot/server.go b/honeypot/server.go index e20fe03..ee4b430 100644 --- a/honeypot/server.go +++ b/honeypot/server.go @@ -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 {