mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-12-23 01:20:11 +00:00
remove extra logs
This commit is contained in:
parent
47ac505cac
commit
754b956206
3
api.go
3
api.go
@ -1034,7 +1034,6 @@ func (app *appContext) GetUsers(gc *gin.Context) {
|
|||||||
i := 0
|
i := 0
|
||||||
app.storage.usersLock.Lock()
|
app.storage.usersLock.Lock()
|
||||||
defer app.storage.usersLock.Unlock()
|
defer app.storage.usersLock.Unlock()
|
||||||
fmt.Printf("GETUSERS user.json:\n%+v\n", app.storage.users)
|
|
||||||
for _, jfUser := range users {
|
for _, jfUser := range users {
|
||||||
user := respUser{
|
user := respUser{
|
||||||
ID: jfUser.ID,
|
ID: jfUser.ID,
|
||||||
@ -1050,10 +1049,8 @@ func (app *appContext) GetUsers(gc *gin.Context) {
|
|||||||
user.Email = email.(string)
|
user.Email = email.(string)
|
||||||
}
|
}
|
||||||
expiry, ok := app.storage.users[jfUser.ID]
|
expiry, ok := app.storage.users[jfUser.ID]
|
||||||
fmt.Printf("CHECKING User: %s, ID: %s, Match: %t\n", user.Name, user.ID, ok)
|
|
||||||
if ok {
|
if ok {
|
||||||
user.Expiry = app.formatDatetime(expiry)
|
user.Expiry = app.formatDatetime(expiry)
|
||||||
fmt.Printf("EXPIRY FOR User %s, ID: %s, Expiry: %+v, Formatted: %s\n", user.Name, user.ID, expiry, user.Expiry)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
resp.UserList[i] = user
|
resp.UserList[i] = user
|
||||||
|
@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"io/fs"
|
"io/fs"
|
||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
@ -496,7 +495,6 @@ func (st *Storage) loadUsers() error {
|
|||||||
st.users[id] = t1
|
st.users[id] = t1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("CURRENT USERS:\n%+v\n", st.users)
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user