summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/server_implementation.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-09-11 18:15:09 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-09-13 14:41:00 +0200
commitdba28855e291dcb587cf1493446cae79f2528223 (patch)
tree404216492c005a8d5ffdff0dcb048e5d59128b77 /src/buildtool/execution_api/execution_service/server_implementation.cpp
parent27a696c4d6d5815b4355d93c767e499028bb7e2f (diff)
downloadjustbuild-dba28855e291dcb587cf1493446cae79f2528223.tar.gz
Check compatibility in execution services based on the hash type
Diffstat (limited to 'src/buildtool/execution_api/execution_service/server_implementation.cpp')
-rw-r--r--src/buildtool/execution_api/execution_service/server_implementation.cpp12
1 files changed, 5 insertions, 7 deletions
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<LocalContext const*> 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)) {