Chore: debug logs
This commit is contained in:
		| @@ -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()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grail Finder
					Grail Finder