Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6fc9ff5

Browse files
committed
fix: use correct logger for lifecycle_executor
1 parent3014777 commit6fc9ff5

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
iferr!=nil {
262262
returnxerrors.Errorf("transition workspace: %w",err)
@@ -274,7 +274,7 @@ func (e *Executor) runOnce(t time.Time) Stats {
274274
returnnil
275275
}()
276276
iferr!=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)

[8]ページ先頭

©2009-2025 Movatter.jp