Remove unnecessary logging
This commit is contained in:
@ -27,12 +27,10 @@ func reset(m chat1.MsgSummary) {
|
||||
|
||||
func authenticate(m chat1.MsgSummary) {
|
||||
defer log.PanicSafe()
|
||||
log.LogDebug("Called authenticate()")
|
||||
if isAuthenticated(m) {
|
||||
k.SendMessageByConvID(m.ConvID, "You have already authenticated (please use !reset to reset.")
|
||||
return
|
||||
}
|
||||
log.LogDebug("User was not already authenticated")
|
||||
if !m.IsEphemeral {
|
||||
k.SendMessageByConvID(m.ConvID, "Please remember to delete your message after we have authenticated!")
|
||||
}
|
||||
@ -41,7 +39,6 @@ func authenticate(m chat1.MsgSummary) {
|
||||
k.SendMessageByConvID(m.ConvID, "Invalid input for command authenticate. Requires username and password. This information is not stored in keybase, or logged. %+v", len(parts))
|
||||
return
|
||||
}
|
||||
log.LogDebug("Proper amount of parameters has been received, calling login()")
|
||||
var username, password, tok string
|
||||
if len(parts) == 3 {
|
||||
username = parts[1]
|
||||
@ -54,7 +51,6 @@ func authenticate(m chat1.MsgSummary) {
|
||||
handleError(err, m, "There was an error logging in. Contact @rudi9719 for more information with code %+v")
|
||||
return
|
||||
}
|
||||
log.LogDebug("Returned from login()")
|
||||
log.LogDebug("Token created for %+v", m.Sender.Username)
|
||||
_, err = k.KVPut(&m.Channel.Name, "teslabot", "authtok", t)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user