mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 21:44:29 +00:00
chore: log API key during worker registration (#4428)
This commit is contained in:
1 parent
8a67dd1b9f
commit
72c7e65c25
2 files changed
+5
-1
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user