summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-02-21 19:43:00 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-02-21 19:43:00 +0100
commit06cbe623a7aa6576e4d24fefd056b13d2b0f35cf (patch)
tree9ed8084beaa4b49bb0818667a4a3c9f3bdceae7e
parentf620c729c783ef49d686f752dbda133d0d389ad1 (diff)
[debug] improve debugging
-rw-r--r--pkg/auth/sip2/client.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/auth/sip2/client.go b/pkg/auth/sip2/client.go
index eca60c2..623dc12 100644
--- a/pkg/auth/sip2/client.go
+++ b/pkg/auth/sip2/client.go
@@ -220,8 +220,10 @@ func (c *sipClient) CheckCredentials(credentials *creds.Credentials) (bool, erro
if value, ok := c.parser.getFieldValue(statusMsg, validPatronPassword); ok && value == yes {
return true, nil
}
- // TODO log whatever error we can find (AF, Screen Message, for instance)
}
+ // TODO log whatever error we can find (AF, Screen Message, for instance)
+ log.Printf("AUTH ERROR. RESPONSE: %s\n", resp)
+
return false, errors.New("unknown error while checking credentials")
}