Add logging to adding users

This commit is contained in:
qowevisa 2024-06-07 12:20:34 +03:00
parent f25659a4a6
commit cb2f9e2406

View File

@ -2,6 +2,7 @@ package main
import (
"errors"
"log"
"math/rand"
"sync"
)
@ -42,6 +43,7 @@ func (u *UserCenter) AddUser(name string) (uint16, error) {
break
}
}
log.Printf("Users: add %s with %d id\n", name, ret)
u.UsersITOS[ret] = name
u.UsersSTOI[name] = ret
return ret, nil