8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
agentTokenToLogger
1 parent f5c11e8 commit d8175a6Copy full SHA for d8175a6
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