1
0
Fork 0
mirror of https://github.com/imjasonh/kontain.me synced 2026-07-18 06:40:04 +00:00

also log path in cache miss case

This commit is contained in:
Jason Hall 2020-05-30 09:14:15 -04:00
parent 42a6d38cdd
commit cecd4d52d6

View file

@ -172,7 +172,7 @@ func (s *server) checkCachedManifest(revision, path string) []byte {
var e cachedManifest
ctx := context.Background() // TODO
if err := s.ds.Get(ctx, k, &e); err == datastore.ErrNoSuchEntity {
s.info.Printf("No cached manifest digest for %q", revision)
s.info.Printf("No cached manifest digest for revision=%q path=%q", revision, path)
} else if err != nil {
s.error.Printf("datastore.Get: %v", err)
}