Skip to content

Logs get into stdout. Messing up commands that pipe from cat. #851

@EmileSonneveld

Description

@EmileSonneveld

I have a command like this:

s5cmd --log debug -r 5 cat s3:/${in_path}/manifest.safe > "$manifest_data_file"
xmlstarlet sel -t -m '...' -v 's1:ascendingNodeTime' "$manifest_data_file" 

When running, a DEBUG statement gets in the output and breaks the XML:

/tmp/tmp.mG42gULExq:1.1: Start tag expected, '<' not found
DEBUG retryable error: ServiceUnavailable: Service Unavailable
^

It also happens with --debug trace
A fix like this could help: #663
Is there an alternative? Changing all occurrences of cat to cp might be a bit involved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions