diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-11 18:15:09 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-09-13 14:41:00 +0200 |
commit | dba28855e291dcb587cf1493446cae79f2528223 (patch) | |
tree | 404216492c005a8d5ffdff0dcb048e5d59128b77 /src/buildtool/execution_api/execution_service/server_implementation.cpp | |
parent | 27a696c4d6d5815b4355d93c767e499028bb7e2f (diff) | |
download | justbuild-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.cpp | 12 |
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)) { |