Add logging to adding users
This commit is contained in:
parent
f25659a4a6
commit
cb2f9e2406
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"log"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"sync"
|
"sync"
|
||||||
)
|
)
|
||||||
|
@ -42,6 +43,7 @@ func (u *UserCenter) AddUser(name string) (uint16, error) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Printf("Users: add %s with %d id\n", name, ret)
|
||||||
u.UsersITOS[ret] = name
|
u.UsersITOS[ret] = name
|
||||||
u.UsersSTOI[name] = ret
|
u.UsersSTOI[name] = ret
|
||||||
return ret, nil
|
return ret, nil
|
||||||
|
|
Loading…
Reference in New Issue
Block a user