Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6fc9ff5

Browse files
committed
fix: use correct logger for lifecycle_executor
1 parent 3014777 commit 6fc9ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coderd/autobuild/lifecycle_executor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
256256
// If the transition didn't succeed then updating the workspace
257257
// to indicate dormant didn't either.
258258
auditLog.Success = err == nil
259-
auditBuild(e.ctx, e.log, *e.auditor.Load(), *auditLog)
259+
auditBuild(e.ctx, log, *e.auditor.Load(), *auditLog)
260260
}
261261
if err != nil {
262262
return xerrors.Errorf("transition workspace: %w", err)
@@ -274,7 +274,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
274274
return nil
275275
}()
276276
if err != nil {
277-
e.log.Error(e.ctx, "failed to transition workspace", slog.Error(err))
277+
log.Error(e.ctx, "failed to transition workspace", slog.Error(err))
278278
statsMu.Lock()
279279
stats.Errors[wsID] = err
280280
statsMu.Unlock()

0 commit comments

Comments
 (0)