Skip to content

Restructure the logging #15

@exdx

Description

@exdx

The logging output right now is not very clean. Using a logging library and providing structure logs should be sufficient. Also, provide a log indicating the content was copied succesfully (from where to where)

dcp-demo: ./dcp quay.io/tflannag/bundles:resolveset-v0.0.2
PullStatus { status: "Pulling from tflannag/bundles", id: Some("resolveset-v0.0.2"), progress: None, progress_detail: None }
PullStatus { status: "Pulling fs layer", id: Some("8d646b05728d"), progress: None, progress_detail: Some(ProgressDetail { current: None, total: None }) }
PullStatus { status: "Downloading", id: Some("8d646b05728d"), progress: Some("[==================================================>]     411B/411B"), progress_detail: Some(ProgressDetail { current: Some(411), total: Some(411) }) }
PullStatus { status: "Verifying Checksum", id: Some("8d646b05728d"), progress: None, progress_detail: Some(ProgressDetail { current: None, total: None }) }
PullStatus { status: "Download complete", id: Some("8d646b05728d"), progress: None, progress_detail: Some(ProgressDetail { current: None, total: None }) }
PullStatus { status: "Extracting", id: Some("8d646b05728d"), progress: Some("[==================================================>]     411B/411B"), progress_detail: Some(ProgressDetail { current: Some(411), total: Some(411) }) }
PullStatus { status: "Extracting", id: Some("8d646b05728d"), progress: Some("[==================================================>]     411B/411B"), progress_detail: Some(ProgressDetail { current: Some(411), total: Some(411) }) }
PullStatus { status: "Pull complete", id: Some("8d646b05728d"), progress: None, progress_detail: Some(ProgressDetail { current: None, total: None }) }
PullStatus { status: "Digest: sha256:145ccb5e7e73d4ae914160c066e49f35bc2be2bb86e4ab0002a802aa436599bf", id: None, progress: None, progress_detail: None }
PullStatus { status: "Status: Downloaded newer image for quay.io/tflannag/bundles:resolveset-v0.0.2", id: None, progress: None, progress_detail: None }
"1fbb062dd17ccfd444843b29a5f99a886ef11b4c8ef03c522f1c17fbd224b5d7"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions