From b2a7137f57d579d0dfcb82af0db374a517b2f504 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Jun 2020 20:13:53 +0200 Subject: [PATCH] LibTLS: Put a little more debug spam behind TLS_DEBUG --- Libraries/LibTLS/Record.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Libraries/LibTLS/Record.cpp b/Libraries/LibTLS/Record.cpp index 19fb65f4406..2ccb2476952 100644 --- a/Libraries/LibTLS/Record.cpp +++ b/Libraries/LibTLS/Record.cpp @@ -295,9 +295,13 @@ ssize_t TLSv12::handle_message(const ByteBuffer& buffer) } break; case MessageType::Alert: +#ifdef TLS_DEBUG dbg() << "alert message of length " << length; +#endif if (length >= 2) { +#ifdef TLS_DEBUG print_buffer(plain); +#endif auto level = plain[0]; auto code = plain[1]; if (level == (u8)AlertLevel::Critical) {