From afd09c32907fd3267de3fb63df281b842ed6b736 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Tue, 12 Dec 2023 15:49:58 +0200 Subject: [PATCH] feat(tvix/castore/import): log returned errors This will emit a log event / trace in case this function returns an error-y type. Change-Id: I48db6807f3e42304357c422a2b6e177cb8b95228 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10329 Autosubmit: flokli Reviewed-by: raitobezarius Tested-by: BuildkiteCI --- tvix/castore/src/import.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvix/castore/src/import.rs b/tvix/castore/src/import.rs index a31bb22a6..6b24c7a52 100644 --- a/tvix/castore/src/import.rs +++ b/tvix/castore/src/import.rs @@ -145,7 +145,7 @@ async fn process_entry<'a>( /// else giving it a "non-content-addressed name". /// It's up to the caller to possibly register it somewhere (and potentially /// rename it based on some naming scheme) -#[instrument(skip(blob_service, directory_service), fields(path=?p))] +#[instrument(skip(blob_service, directory_service), fields(path=?p), err)] pub async fn ingest_path + Debug>( blob_service: Arc, directory_service: Arc,