Skip to content

Getting only 10 lines of log with --follow option #166

@seungjin

Description

@seungjin

Did this Rust code:

pub async fn post(req: Request, _params: Params) -> Result<Response> {
    println!("POSTED to INBOX");
    for n in 1..20 {
        println!("{n}: ######################");
    }
...
}

So every time when my post method is hit by request, I am supposed to see 20 of {n}: #### lines.
However actually I am just seeing only first 10 lines.
Guessing --tail option's default 10 value is taking over --follow thing.
Following is working but only showing 10 lines every time when I get new logs.
Tried with both --tail and --follow options (spin cloud logs --follow --tail 100) but still getting only 10 lines.

Discord thread here:
https://discord.com/channels/926888690310053918/1024646765149950022/1186957181887729674

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions