Chore: debug logs

This commit is contained in:
Grail Finder
2025-07-11 11:58:57 +03:00
parent 37fe76456e
commit d41ed9d822
5 changed files with 9 additions and 5 deletions

View File

@ -293,7 +293,6 @@ func HandleAddBot(w http.ResponseWriter, r *http.Request) {
// get team; // get role; make up a name
team := r.URL.Query().Get("team")
role := r.URL.Query().Get("role")
log.Debug("got add-bot request", "team", team, "role", role)
fi, err := getFullInfoByCtx(r.Context())
if err != nil {
abortWithError(w, err.Error())
@ -307,6 +306,7 @@ func HandleAddBot(w http.ResponseWriter, r *http.Request) {
} else {
botname = fmt.Sprintf("bot_%d", maxID+1) // what if many rooms?
}
log.Debug("got add-bot request", "team", team, "role", role, "max_id", maxID, "botname", botname, "error", err)
_, err = llmapi.NewBot(role, team, botname, fi.Room.ID, cfg, false)
if err != nil {
abortWithError(w, err.Error())