From dfcd8d353ff8e8920d9ad8e1e56f79f5a54b73ea Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Wed, 15 Feb 2023 16:17:11 +0100 Subject: just-execute: report un-tagged hashes --- src/buildtool/execution_api/execution_service/ac_server.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/ac_server.cpp') diff --git a/src/buildtool/execution_api/execution_service/ac_server.cpp b/src/buildtool/execution_api/execution_service/ac_server.cpp index 1b5b9470..40407711 100644 --- a/src/buildtool/execution_api/execution_service/ac_server.cpp +++ b/src/buildtool/execution_api/execution_service/ac_server.cpp @@ -15,6 +15,7 @@ #include "src/buildtool/execution_api/execution_service/ac_server.hpp" #include "fmt/format.h" +#include "src/buildtool/compatibility/native_support.hpp" #include "src/buildtool/execution_api/local/garbage_collector.hpp" auto ActionCacheServiceImpl::GetActionResult( @@ -25,7 +26,7 @@ auto ActionCacheServiceImpl::GetActionResult( -> ::grpc::Status { logger_.Emit(LogLevel::Trace, "GetActionResult: {}", - request->action_digest().hash()); + NativeSupport::Unprefix(request->action_digest().hash())); auto lock = GarbageCollector::SharedLock(); if (!lock) { auto str = fmt::format("Could not acquire SharedLock"); @@ -34,9 +35,10 @@ auto ActionCacheServiceImpl::GetActionResult( } auto x = ac_.CachedResult(request->action_digest()); if (!x) { - return grpc::Status{ - grpc::StatusCode::NOT_FOUND, - fmt::format("{} missing from AC", request->action_digest().hash())}; + return grpc::Status{grpc::StatusCode::NOT_FOUND, + fmt::format("{} missing from AC", + NativeSupport::Unprefix( + request->action_digest().hash()))}; } *response = *x; return ::grpc::Status::OK; -- cgit v1.2.3