From dba28855e291dcb587cf1493446cae79f2528223 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Wed, 11 Sep 2024 18:15:09 +0200 Subject: Check compatibility in execution services based on the hash type --- .../execution_service/server_implementation.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/buildtool/execution_api/execution_service/server_implementation.cpp') diff --git a/src/buildtool/execution_api/execution_service/server_implementation.cpp b/src/buildtool/execution_api/execution_service/server_implementation.cpp index 67633b69..0b921d6b 100644 --- a/src/buildtool/execution_api/execution_service/server_implementation.cpp +++ b/src/buildtool/execution_api/execution_service/server_implementation.cpp @@ -142,13 +142,11 @@ auto ServerImpl::Run(gsl::not_null const& local_context, } } - auto const& info_str = nlohmann::to_string(info); - Logger::Log( - LogLevel::Info, - fmt::format( - "{}execution service started: {}", - ProtocolTraits::Instance().IsCompatible() ? "compatible " : "", - info_str)); + auto const info_str = nlohmann::to_string(info); + Logger::Log(LogLevel::Info, + "{}execution service started: {}", + ProtocolTraits::IsNative(hash_type) ? "" : "compatible ", + info_str); if (not info_file_.empty()) { if (not TryWrite(info_file_, info_str)) { -- cgit v1.2.3