summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/cas_server.cpp
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2023-02-15 16:17:11 +0100
committerAlberto Sartori <alberto.sartori@huawei.com>2023-02-15 16:41:10 +0100
commitdfcd8d353ff8e8920d9ad8e1e56f79f5a54b73ea (patch)
tree9b5b65553de653e969f40d6773f422ee3846c183 /src/buildtool/execution_api/execution_service/cas_server.cpp
parentddf097f7a1c1bb438f1fc97150a263cf28be9293 (diff)
downloadjustbuild-dfcd8d353ff8e8920d9ad8e1e56f79f5a54b73ea.tar.gz
just-execute: report un-tagged hashes
Diffstat (limited to 'src/buildtool/execution_api/execution_service/cas_server.cpp')
-rw-r--r--src/buildtool/execution_api/execution_service/cas_server.cpp16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/buildtool/execution_api/execution_service/cas_server.cpp b/src/buildtool/execution_api/execution_service/cas_server.cpp
index 025a6757..3afde937 100644
--- a/src/buildtool/execution_api/execution_service/cas_server.cpp
+++ b/src/buildtool/execution_api/execution_service/cas_server.cpp
@@ -32,7 +32,9 @@ auto CASServiceImpl::FindMissingBlobs(
}
for (auto const& x : request->blob_digests()) {
auto const& hash = x.hash();
- logger_.Emit(LogLevel::Trace, "FindMissingBlobs: {}", hash);
+ logger_.Emit(LogLevel::Trace,
+ "FindMissingBlobs: {}",
+ NativeSupport::Unprefix(hash));
if (NativeSupport::IsTree(hash)) {
if (!storage_.TreePath(x)) {
auto* d = response->add_missing_blob_digests();
@@ -61,20 +63,24 @@ auto CASServiceImpl::BatchUpdateBlobs(
}
for (auto const& x : request->requests()) {
auto const& hash = x.digest().hash();
- logger_.Emit(LogLevel::Trace, "BatchUpdateBlobs: {}", hash);
+ logger_.Emit(LogLevel::Trace,
+ "BatchUpdateBlobs: {}",
+ NativeSupport::Unprefix(hash));
auto* r = response->add_responses();
r->mutable_digest()->CopyFrom(x.digest());
if (NativeSupport::IsTree(hash)) {
if (!storage_.StoreTree(x.data())) {
- auto const& str = fmt::format(
- "BatchUpdateBlobs: could not upload tree {}", hash);
+ auto const& str =
+ fmt::format("BatchUpdateBlobs: could not upload tree {}",
+ NativeSupport::Unprefix(hash));
logger_.Emit(LogLevel::Error, str);
return ::grpc::Status{grpc::StatusCode::INTERNAL, str};
}
}
else if (!storage_.StoreBlob(x.data(), false)) {
auto const& str =
- fmt::format("BatchUpdateBlobs: could not upload blob {}", hash);
+ fmt::format("BatchUpdateBlobs: could not upload blob {}",
+ NativeSupport::Unprefix(hash));
logger_.Emit(LogLevel::Error, str);
return ::grpc::Status{grpc::StatusCode::INTERNAL, str};
}