Author: Ebuka Ezike Date: 2025-03-17T07:58:55Z New Revision: 3af6c9fa832ac29125cad76acb397d6235c371e9
URL: https://github.com/llvm/llvm-project/commit/3af6c9fa832ac29125cad76acb397d6235c371e9 DIFF: https://github.com/llvm/llvm-project/commit/3af6c9fa832ac29125cad76acb397d6235c371e9.diff LOG: [lldb][lldb-dap][NFC] Fix swapped logging directions for DAP messages. (#131544) The logging markers for incoming ("<--") and outgoing ("-->") messages were incorrectly reversed. from #7790d69 Added: Modified: lldb/tools/lldb-dap/Transport.cpp Removed: ################################################################################ diff --git a/lldb/tools/lldb-dap/Transport.cpp b/lldb/tools/lldb-dap/Transport.cpp index db2d7228d3fb7..a721662a345eb 100644 --- a/lldb/tools/lldb-dap/Transport.cpp +++ b/lldb/tools/lldb-dap/Transport.cpp @@ -103,7 +103,7 @@ Expected<std::optional<Message>> Transport::Read() { if (raw_json->length() != length) return createStringError("unexpected EOF parse DAP message body"); - DAP_LOG(m_log, "<-- ({0}) {1}", m_client_name, *raw_json); + DAP_LOG(m_log, "--> ({0}) {1}", m_client_name, *raw_json); return json::parse<Message>(*raw_json); } @@ -114,7 +114,7 @@ Error Transport::Write(const Message &message) { std::string json = formatv("{0}", toJSON(message)).str(); - DAP_LOG(m_log, "--> ({0}) {1}", m_client_name, json); + DAP_LOG(m_log, "<-- ({0}) {1}", m_client_name, json); std::string Output; raw_string_ostream OS(Output); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits