From a4d2e8b2701941eb69b34fb55d76e8b4fb033615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Tue, 14 Sep 2021 14:00:54 +0200 Subject: [PATCH] Fix mixed log using string concat --- include/datadog/opentracing.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/datadog/opentracing.h b/include/datadog/opentracing.h index 7b2636bd..d89bf188 100644 --- a/include/datadog/opentracing.h +++ b/include/datadog/opentracing.h @@ -119,16 +119,16 @@ struct TracerOptions { LogFunc log_func = [](LogLevel level, ot::string_view message) { switch (level) { case LogLevel::debug: - std::cerr << "debug: " << message << std::endl; + std::cerr << "debug: " + message + std::endl; break; case LogLevel::info: - std::cerr << "info: " << message << std::endl; + std::cerr << "info: " + message + std::endl; break; case LogLevel::error: - std::cerr << "error: " << message << std::endl; + std::cerr << "error: " + message + std::endl; break; default: - std::cerr << ": " << message << std::endl; + std::cerr << ": " + message + std::endl; break; } };