nikivdev/code · error

Cloudflare log tail failed

Error message

Cloudflare log tail failed

What it means

Error "Cloudflare log tail failed" thrown in nikivdev/code.

Source

Thrown at src/deploy.rs:1751

    if !follow {
        eprintln!("Note: wrangler tail streams logs until you stop it (Ctrl+C).");
        let _ = lines;
    }

    let mut cmd = wrangler_command(&worker_path);
    cmd.arg("tail").args(["--format", "pretty"]);
    if let Some(env) = cf_cfg.environment.as_deref() {
        cmd.args(["--env", env]);
    }

    let status = cmd
        .stdin(Stdio::inherit())
        .stdout(Stdio::inherit())
        .stderr(Stdio::inherit())
        .status()?;

    if !status.success() {
        bail!("Cloudflare log tail failed");
    }

    Ok(())
}

/// Restart the deployed service.
fn restart_service(_project_root: &Path, config: Option<&Config>) -> Result<()> {
    let deploy_config = load_deploy_config()?;
    let conn = deploy_config.host.as_ref().context("No host configured")?;
    let service = config
        .and_then(|c| c.host.as_ref())
        .and_then(|h| h.service.as_ref())
        .context("No service name")?;

    println!("Restarting {}...", service);
    ssh_run(conn, &format!("systemctl restart {}", service))?;
    println!("✓ Restarted");
    Ok(())

View on GitHub (pinned to a747e741ae)

When it happens

Trigger: Thrown at src/deploy.rs:1751 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nikivdev/code@a747e741ae (2026-09-01). Data as JSON: /api/errors/93ec309d9892dc28. Report an issue: GitHub.