1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/distribution
Sebastiaan van Stijn 8606144159
log fallback errors as "info"
Fallback errors are not an error, but an
informational message.

This changes those errors to be logged
as "Info" instead of "Error".

After this patch, debug logs look like this;

    DEBU[0050] Calling GET /_ping
    DEBU[0050] Calling POST /v1.27/images/create?fromImage=localhost%3A5000%2Ffoo&tag=latest
    DEBU[0050] Trying to pull localhost:5000/foo from https://localhost:5000 v2
    WARN[0050] Error getting v2 registry: Get https://localhost:5000/v2/: http: server gave HTTP response to HTTPS client
    INFO[0050] Attempting next endpoint for pull after error: Get https://localhost:5000/v2/: http: server gave HTTP response to HTTPS client
    DEBU[0050] Trying to pull localhost:5000/foo from http://localhost:5000 v2
    INFO[0050] Attempting next endpoint for pull after error: manifest unknown: manifest unknown
    DEBU[0050] Trying to pull localhost:5000/foo from https://localhost:5000 v1
    DEBU[0050] attempting v1 ping for registry endpoint https://localhost:5000/v1/
    DEBU[0050] Fallback from error: Get https://localhost:5000/v1/_ping: http: server gave HTTP response to HTTPS client
    INFO[0050] Attempting next endpoint for pull after error: Get https://localhost:5000/v1/_ping: http: server gave HTTP response to HTTPS client
    DEBU[0050] Trying to pull localhost:5000/foo from http://localhost:5000 v1
    DEBU[0050] [registry] Calling GET http://localhost:5000/v1/repositories/foo/images
    ERRO[0050] Not continuing with pull after error: Error: image foo:latest not found

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-02-24 14:27:35 +01:00
..
fixtures/validate_manifest Add distribution package 2015-11-24 09:40:24 -08:00
metadata *: use opencontainers/go-digest package 2017-01-06 18:48:41 -08:00
utils Implement content addressability for plugins 2016-12-23 13:29:58 -08:00
xfer Add tracking to elided layer pulls. 2017-01-31 16:36:17 -08:00
config.go Merge pull request #29001 from darrenstahlmsft/WindowsOnLinux 2017-02-16 19:57:54 +01:00
errors.go Use distribution reference 2017-02-07 11:08:37 -08:00
pull.go log fallback errors as "info" 2017-02-24 14:27:35 +01:00
pull_v1.go Use distribution reference 2017-02-07 11:08:37 -08:00
pull_v2.go log fallback errors as "info" 2017-02-24 14:27:35 +01:00
pull_v2_test.go Use distribution reference 2017-02-07 11:08:37 -08:00
pull_v2_unix.go Removing old custom RootFS behavior on Windows. 2016-07-29 14:15:59 -07:00
pull_v2_windows.go Windows: Add debug output to foreign layer pull 2016-09-26 08:56:34 -07:00
push.go log fallback errors as "info" 2017-02-24 14:27:35 +01:00
push_v1.go Use distribution reference 2017-02-07 11:08:37 -08:00
push_v2.go Use distribution reference 2017-02-07 11:08:37 -08:00
push_v2_test.go Use distribution reference 2017-02-07 11:08:37 -08:00
registry.go Use distribution reference 2017-02-07 11:08:37 -08:00
registry_unit_test.go Use distribution reference 2017-02-07 11:08:37 -08:00