Skip to content

Commit 7d88b91

Browse files
committed
Keep NoopLogHandler::Handle empty
1 parent f756ff3 commit 7d88b91

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

sdk/src/common/global_log_handler.cc

+6-20
Original file line numberDiff line numberDiff line change
@@ -37,26 +37,12 @@ void DefaultLogHandler::Handle(LogLevel level,
3737
std::cout << output_s.str(); // thread safe.
3838
}
3939

40-
void NoopLogHandler::Handle(LogLevel level,
41-
const char *file,
42-
int line,
43-
const char *msg,
44-
const sdk::common::AttributeMap &attributes) noexcept
45-
{
46-
std::stringstream output_s;
47-
output_s << "[" << LevelToString(level) << "] ";
48-
if (file != nullptr)
49-
{
50-
output_s << "File: " << file << ":" << line;
51-
}
52-
if (msg != nullptr)
53-
{
54-
output_s << msg;
55-
}
56-
output_s << std::endl;
57-
// TBD - print attributes
58-
std::cout << output_s.str(); // thread safe.
59-
}
40+
void NoopLogHandler::Handle(LogLevel,
41+
const char *,
42+
int,
43+
const char *,
44+
const sdk::common::AttributeMap &) noexcept
45+
{}
6046

6147
std::pair<nostd::shared_ptr<LogHandler>, LogLevel> &GlobalLogHandler::GetHandlerAndLevel() noexcept
6248
{

0 commit comments

Comments
 (0)