We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
agentTokenToLogger
1 parent b661fb8 commit d46083aCopy full SHA for d46083a
logger.go
@@ -300,7 +300,9 @@ func (p *podEventLogger) init() error {
300
// If a logger already exists for the token, it's returned. Otherwise a new
301
// logger is created and returned.
302
func (p *podEventLogger) sendLog(resourceName, token string, log agentsdk.StartupLog) {
303
+ p.mutex.Lock()
304
logger, ok := p.agentTokenToLogger[token]
305
+ p.mutex.Unlock()
306
if !ok {
307
client := agentsdk.New(p.coderURL)
308
client.SetSessionToken(token)
0 commit comments