about summary refs log tree commit diff
path: root/tvix/nar-bridge
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/nar-bridge')
-rw-r--r--tvix/nar-bridge/pkg/server/nar_get.go2
-rw-r--r--tvix/nar-bridge/pkg/server/narinfo_get.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/nar-bridge/pkg/server/nar_get.go b/tvix/nar-bridge/pkg/server/nar_get.go
index c8c35e69ff16..d1a9426f33d4 100644
--- a/tvix/nar-bridge/pkg/server/nar_get.go
+++ b/tvix/nar-bridge/pkg/server/nar_get.go
@@ -171,10 +171,10 @@ func registerNarGet(s *Server) {
 
 		err = renderNar(ctx, log, s.directoryServiceClient, s.blobServiceClient, &s.narHashToPathInfoMu, s.narHashToPathInfo, w, narHash, true)
 		if err != nil {
-			log.WithError(err).Info("unable to render nar")
 			if errors.Is(err, fs.ErrNotExist) {
 				w.WriteHeader(http.StatusNotFound)
 			} else {
+				log.WithError(err).Warn("unable to render nar")
 				w.WriteHeader(http.StatusInternalServerError)
 			}
 		}
diff --git a/tvix/nar-bridge/pkg/server/narinfo_get.go b/tvix/nar-bridge/pkg/server/narinfo_get.go
index 977e1136130f..ec850670b40d 100644
--- a/tvix/nar-bridge/pkg/server/narinfo_get.go
+++ b/tvix/nar-bridge/pkg/server/narinfo_get.go
@@ -135,10 +135,10 @@ func registerNarinfoGet(s *Server) {
 
 		err = renderNarinfo(ctx, log, s.pathInfoServiceClient, &s.narHashToPathInfoMu, s.narHashToPathInfo, outputHash, w, false)
 		if err != nil {
-			log.WithError(err).Info("unable to render narinfo")
 			if errors.Is(err, fs.ErrNotExist) {
 				w.WriteHeader(http.StatusNotFound)
 			} else {
+				log.WithError(err).Warn("unable to render narinfo")
 				w.WriteHeader(http.StatusInternalServerError)
 			}
 		}