Skip to content

Commit bdfcf3a

Browse files
committed
[lldb][lldb-dap][NFC] Fix swapped logging directions for DAP messages.
The logging markers for incoming ("<--") and outgoing ("-->") messages were incorrectly reversed. from #7790d69
1 parent 81ba006 commit bdfcf3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/lldb-dap/Transport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Expected<std::optional<Message>> Transport::Read() {
103103
if (raw_json->length() != length)
104104
return createStringError("unexpected EOF parse DAP message body");
105105

106-
DAP_LOG(m_log, "<-- ({0}) {1}", m_client_name, *raw_json);
106+
DAP_LOG(m_log, "--> ({0}) {1}", m_client_name, *raw_json);
107107

108108
return json::parse<Message>(*raw_json);
109109
}
@@ -114,7 +114,7 @@ Error Transport::Write(const Message &message) {
114114

115115
std::string json = formatv("{0}", toJSON(message)).str();
116116

117-
DAP_LOG(m_log, "--> ({0}) {1}", m_client_name, json);
117+
DAP_LOG(m_log, "<-- ({0}) {1}", m_client_name, json);
118118

119119
std::string Output;
120120
raw_string_ostream OS(Output);

0 commit comments

Comments
 (0)