Skip to content

Commit 1b896fb

Browse files
committed
Adjusting the transport logs to be 'verbose' to make it less likely for resurive logging.
1 parent 133ca86 commit 1b896fb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ void DAP::SendJSON(const std::string &json_str) {
248248
output.write_full("\r\n\r\n");
249249
output.write_full(json_str);
250250

251-
LLDB_LOG(GetLog(DAPLog::Transport), "{0} <-- {1}", name, json_str);
251+
LLDB_LOGV(GetLog(DAPLog::Transport), "{0} <-- {1}", name, json_str);
252252
}
253253

254254
// Serialize the JSON value into a string and send the JSON packet to
@@ -283,7 +283,7 @@ std::string DAP::ReadJSON() {
283283
if (!input.read_full(length, json_str))
284284
return json_str;
285285

286-
LLDB_LOG(GetLog(DAPLog::Transport), "{0} --> {1}", name, json_str);
286+
LLDB_LOGV(GetLog(DAPLog::Transport), "{0} --> {1}", name, json_str);
287287
return json_str;
288288
}
289289

lldb/tools/lldb-dap/lldb-dap.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,8 @@ int main(int argc, char *argv[]) {
498498

499499
if (!lldb_private::Log::EnableLogChannel(
500500
std::make_shared<DAPLogHandler>(std::move(log)),
501-
LLDB_LOG_OPTION_PREPEND_TIMESTAMP, "lldb-dap", {"all"},
502-
llvm::errs())) {
501+
LLDB_LOG_OPTION_VERBOSE | LLDB_LOG_OPTION_PREPEND_TIMESTAMP,
502+
"lldb-dap", {"all"}, llvm::errs())) {
503503
return EXIT_FAILURE;
504504
}
505505
}

0 commit comments

Comments
 (0)