cnabio / cnab-to-oci

Tool to convert CNAB bundle.json to OCI index
Apache License 2.0
54 stars 41 forks source link

Mute containerd warnings on push #35

Closed simonferquel closed 5 years ago

simonferquel commented 5 years ago

When pushing onto a registry accepting config media type application/vnd.cnab.config.v1+json, containerd client lib emits a warning: WARN[0015] reference for unknown type: application/vnd.cnab.config.v1+json on stderr.

To avoid this, this PR set a muted logger to the push context

simonferquel commented 5 years ago

@silvin-lubecki @chris-crone PTAL

Also cc @caervs

simonferquel commented 5 years ago

@silvin-lubecki I think it is a good idea, but more likely in a followup. Also I am a bit worried as logging while having the interactive progress might produce some weird console output. Probably usefull for debugging though. Can you open an issue ?

silvin-lubecki commented 5 years ago

Created here #36