From 8b002454ced796d6a7661d20198f0f8cc99c9925 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Wed, 11 Dec 2024 16:10:17 +0100 Subject: [PATCH] Update logging --- cpp/s2pexec/s2pexec_core.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cpp/s2pexec/s2pexec_core.cpp b/cpp/s2pexec/s2pexec_core.cpp index a0289804..563c4721 100644 --- a/cpp/s2pexec/s2pexec_core.cpp +++ b/cpp/s2pexec/s2pexec_core.cpp @@ -506,7 +506,10 @@ string S2pExec::WriteData(span data) string hex = FormatBytes(data, static_cast(data.size()), 0, hex_only); if (filename.empty()) { - cout << hex << '\n'; + if (initiator_logger->level() <= level::debug) + { + cout << hex << '\n'; + } } else { ofstream out(filename, text ? ios::out : ios::out | ios::binary);