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 <flokli@flokli.de> Reviewed-by: raitobezarius <tvl@lahfa.xyz> Tested-by: BuildkiteCI
This commit is contained in:
parent
30d82efa77
commit
afd09c3290
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ async fn process_entry<'a>(
|
||||||
/// else giving it a "non-content-addressed name".
|
/// else giving it a "non-content-addressed name".
|
||||||
/// It's up to the caller to possibly register it somewhere (and potentially
|
/// It's up to the caller to possibly register it somewhere (and potentially
|
||||||
/// rename it based on some naming scheme)
|
/// 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<P: AsRef<Path> + Debug>(
|
pub async fn ingest_path<P: AsRef<Path> + Debug>(
|
||||||
blob_service: Arc<dyn BlobService>,
|
blob_service: Arc<dyn BlobService>,
|
||||||
directory_service: Arc<dyn DirectoryService>,
|
directory_service: Arc<dyn DirectoryService>,
|
||||||
|
|
Loading…
Reference in a new issue