Only log raw crypto data if DBG_DATA is enabled
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 23 Oct 2018 08:55:07 +0000 (10:55 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 23 Oct 2018 08:55:07 +0000 (10:55 +0200)
* src/mimedataprovider.cpp (MimeDataProvider::collect_input_lines):
Change a log_debug to log_data.

--
This can be signed data so it might be a data leak.

src/mimedataprovider.cpp

index 01841da..be10e14 100644 (file)
@@ -787,7 +787,7 @@ MimeDataProvider::collect_input_lines(const char *input, size_t insize)
                 len = b64_decode (&m_mime_ctx->base64, linebuf, pos);
               else
                 len = pos;
-              log_debug ("Writing crypto data: %.*s",
+              log_data ("Writing crypto data: %.*s",
                          (int)pos, linebuf);
               if (len)
                 m_crypto_data.write(linebuf, len);