diff --git a/virtcontainers/proxy.go b/virtcontainers/proxy.go index 5fb512635..b8cbfbf09 100644 --- a/virtcontainers/proxy.go +++ b/virtcontainers/proxy.go @@ -239,7 +239,9 @@ func (p *proxyBuiltin) start(params proxyParams) (int, string, error) { p.sandboxID = params.id - if params.debug { + // For firecracker, it hasn't support the console watching and it's consoleURL + // will be set empty. + if params.debug && params.consoleURL != "" { err := p.watchConsole(buildinProxyConsoleProto, params.consoleURL, params.logger) if err != nil { p.sandboxID = ""