Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Improve logging in order to help diagnosing issues #895

Closed
marccarre opened this issue Jan 11, 2018 · 1 comment
Closed

Improve logging in order to help diagnosing issues #895

marccarre opened this issue Jan 11, 2018 · 1 comment

Comments

@marccarre
Copy link
Contributor

Problem:
The following log statement does not say enough to be able to debug the actual issue.

ts=2018-01-10T21:16:55.42468337Z caller=warming.go:154 component=warmer err="requesting tags: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"

Solution:
Log details like:

  • what image was Flux requesting tags for,
  • from which repository,
  • with which credentials,
  • etc.

Where the issue occurred:

@rade
Copy link
Contributor

rade commented Jan 11, 2018

I believe the error does bubble up and gets logged with a little bit more context:

ts=2018-01-10T21:10:06.053691237Z caller=images.go:89 component=daemon err="fetching image metadata for index.docker.io/contractlandstaff/helium-authentication-web: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"

Still doesn't tell you anything about the credentials used though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants