Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Dec 11, 2024
1 parent ed9711b commit fbe7877
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cpp/s2pexec/s2pexec_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,10 @@ string S2pExec::WriteData(span<const uint8_t> data)
string hex = FormatBytes(data, static_cast<int>(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);
Expand Down

0 comments on commit fbe7877

Please sign in to comment.