From 844a8db6c68fbd964d316c69964b29b2dc6f06b3 Mon Sep 17 00:00:00 2001 From: Victor Vieux Date: Mon, 3 Jun 2013 12:21:22 +0000 Subject: [PATCH] add debug --- server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.go b/server.go index 6165dc5061..c90f64bb15 100644 --- a/server.go +++ b/server.go @@ -395,6 +395,7 @@ func (srv *Server) pullRepository(r *registry.Registry, out io.Writer, remote, a } func (srv *Server) ImagePull(name, tag, endpoint string, out io.Writer, sf *utils.StreamFormatter, authConfig *auth.AuthConfig) error { + utils.Debugf("ImagePull from <%s>", authConfig.Username) r := registry.NewRegistry(srv.runtime.root, authConfig) out = utils.NewWriteFlusher(out) if endpoint != "" { @@ -577,6 +578,7 @@ func (srv *Server) pushImage(r *registry.Registry, out io.Writer, remote, imgId, } func (srv *Server) ImagePush(name, endpoint string, out io.Writer, sf *utils.StreamFormatter, authConfig *auth.AuthConfig) error { + utils.Debugf("ImagePush from <%s>", authConfig.Username) out = utils.NewWriteFlusher(out) img, err := srv.runtime.graph.Get(name) r := registry.NewRegistry(srv.runtime.root, authConfig)