chore: log API key during worker registration (#4428)

This commit is contained in:
David Zhao authored and GitHub committed 2026-04-03 09:48:42 -07:00
1 parent 8a67dd1b9f
commit 72c7e65c25
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -280,6 +280,10 @@ func (w *Worker) sendRequest(req *livekit.ServerMessage) {
}
}
func (w *Worker) APIKey() string {
return w.apiKey
}
func (w *Worker) Status() livekit.WorkerStatus {
w.mu.Lock()
defer w.mu.Unlock()
+1 -1
View File
@@ -404,7 +404,7 @@ func (h *AgentHandler) JobRequest(ctx context.Context, job *livekit.Job) (*rpc.J
state, err := selected.AssignJob(ctx, job)
switch state.GetStatus() {
case livekit.JobStatus_JS_RUNNING:
logger.Infow("assigned job to worker")
logger.Infow("assigned job to worker", "apiKey", selected.APIKey())
h.mu.Lock()
h.jobToWorker[livekit.JobID(job.Id)] = selected
h.mu.Unlock()