8000 add warn · coder/coder@901a258 · GitHub
[go: up one dir, main page]

Skip to content

Commit 901a258

Browse files
committed
add warn
1 parent 2fd85f7 commit 901a258

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

agent/agentcontainers/api.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ func NewAPI(logger slog.Logger, experimentalDevcontainersEnabled bool, options .
155155
}
156156
}
157157
} else {
158+
if api.cl != nil || api.dccli != nil || api.watcher != nil {
159+
logger.Warn(ctx, "devcontainers are disabled but API is configured with devcontainer services")
160+
}
158161
api.cl = &NoopLister{}
159162
api.dccli = &noopDevcontainerCLI{}
160163
api.watcher = watcher.NewNoop()

0 commit comments

Comments
 (0)
0