From d7389dfc5dbc653b88d63671630896dc9b9f275a Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 2 Sep 2013 13:35:38 -0400 Subject: [PATCH] Removing debug stuff --- bot/users.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bot/users.go b/bot/users.go index 75ca31e..4ad3ca5 100644 --- a/bot/users.go +++ b/bot/users.go @@ -37,18 +37,15 @@ func (b *Bot) GetUser(nick string) *User { var user *User count, err := query.Count() - log.Printf("Searching for %s. Found %d entries.\n", nick, count) if err != nil { - log.Printf("Error fetching user, %s: %s\n", nick, err) user = b.NewUser(nick) coll.Insert(*user) } else if count == 1 { err = query.One(&user) if err != nil { - panic(err) + log.Printf("ERROR adding user: %s -- %s\n", nick, err) } - log.Printf("Found user: %s\n", nick) } else if count == 0 { // create the user log.Printf("Creating new user: %s\n", nick)