Skip to content

Commit

Permalink
Fix mixed log using string concat
Browse files Browse the repository at this point in the history
  • Loading branch information
aureplop committed Sep 14, 2021
1 parent e76fc0c commit a4d2e8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/datadog/opentracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 << "<unknown level>: " << message << std::endl;
std::cerr << "<unknown level>: " + message + std::endl;
break;
}
};
Expand Down

0 comments on commit a4d2e8b

Please sign in to comment.