summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/execution_service/server_implementation.cpp
diff options
context:
space:
mode:
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)) {