Skip to content

Tracepipe flags updated #329

@XieGuochao

Description

@XieGuochao

Root Cause

Since commit, a new flag migrate-disable delay has been added to the tracepipe flag.

Error

The current regex does not well to parse with the additional flag bit.

// A line from trace_pipe looks like (leading spaces included):
// `        chromium-15581 [000] d... 92783.722567: : Hello, World!`
var traceLineRegexp = regexp.MustCompile(`(.{16})-(\d+) +\[(\d{3})\] (.{4}) +(\d+\.\d+)\: (.*?)\: (.*)`)

Solution

Making the flag length variable can resolve this issue. I can create a PR for this.
For example, (.{4}) should be (.{4,}).

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