tvl-depot/tvix/nar-bridge/pkg/server
Florian Klink dd7cc6ed68 fix(tvix/nar-bridge): don't log error on simple 404s
`nix copy` checks if NARs and NARInfo files are present, before
uploading them. That's not an error, but normal behaviour, so no need to
log with level info for these cases.

We only want to log if the error is not a 404, and log with Warn level.

Change-Id: I762de3b862d070a0f18bc62e324e94ca5c7c3693
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9359
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
2023-09-18 14:02:28 +00:00
..
blob_upload.go fix(tvix/nar-bridge): chunk blobs 2023-09-18 14:02:28 +00:00
directory_upload.go feat(tvix/nar-bridge): init 2023-09-17 13:24:53 +00:00
nar_get.go fix(tvix/nar-bridge): don't log error on simple 404s 2023-09-18 14:02:28 +00:00
nar_put.go feat(tvix/nar-bridge): buffer request body a bit more 2023-09-18 14:02:28 +00:00
narinfo_get.go fix(tvix/nar-bridge): don't log error on simple 404s 2023-09-18 14:02:28 +00:00
narinfo_put.go feat(tvix/nar-bridge): init 2023-09-17 13:24:53 +00:00
server.go feat(tvix/nar-bridge): increase timeouts 2023-09-17 13:24:53 +00:00
util.go feat(tvix/nar-bridge): init 2023-09-17 13:24:53 +00:00