@@ -130,7 +130,11 @@ func (e *Executor) runOnce(t time.Time) Stats {
130
130
131
131
for _ ,ws := range workspaces {
132
132
wsID := ws .ID
133
- log := e .log .With (slog .F ("workspace_id" ,wsID ))
133
+ wsName := ws .Name
134
+ log := e .log .With (
135
+ slog .F ("workspace_id" ,wsID ),
136
+ slog .F ("workspace_name" ,wsName ),
137
+ )
134
138
135
139
eg .Go (func ()error {
136
140
err := func ()error {
@@ -256,7 +260,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
256
260
// If the transition didn't succeed then updating the workspace
257
261
// to indicate dormant didn't either.
258
262
auditLog .Success = err == nil
259
- auditBuild (e .ctx ,e . log ,* e .auditor .Load (),* auditLog )
263
+ auditBuild (e .ctx ,log ,* e .auditor .Load (),* auditLog )
260
264
}
261
265
if err != nil {
262
266
return xerrors .Errorf ("transition workspace: %w" ,err )
@@ -274,7 +278,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
274
278
return nil
275
279
}()
276
280
if err != nil {
277
- e . log .Error (e .ctx ,"failed to transition workspace" ,slog .Error (err ))
281
+ log .Error (e .ctx ,"failed to transition workspace" ,slog .Error (err ))
278
282
statsMu .Lock ()
279
283
stats .Errors [wsID ]= err
280
284
statsMu .Unlock ()