mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-27 22:45:52 +00:00
better WASM logging to match rippled (#5395)
* basic logging * pass in Journal * log level based on journal level * clean up * attempt at adding WAMR logging properly * improve logline * maybe_unused * fix * fix * fix segfault * add test
This commit is contained in:
@@ -56,7 +56,7 @@ runEscrowWasm(
|
||||
WASM_IMPORT_FUNC(imports, print, hfs)
|
||||
|
||||
std::int64_t const sgas = gasLimit; // vm.getGas();
|
||||
auto ret = vm.run(wasmCode, funcName, imports);
|
||||
auto ret = vm.run(wasmCode, funcName, imports, {}, hfs->getJournal());
|
||||
|
||||
// std::cout << "runEscrowWasm, mod size: " << wasmCode.size()
|
||||
// << ", gasLimit: " << gasLimit << ", funcName: " << funcName;
|
||||
@@ -92,9 +92,10 @@ WasmEngine::run(
|
||||
wbytes const& wasmCode,
|
||||
std::string_view funcName,
|
||||
std::vector<WasmImportFunc> const& imports,
|
||||
std::vector<WasmParam> const& params)
|
||||
std::vector<WasmParam> const& params,
|
||||
beast::Journal j)
|
||||
{
|
||||
return impl->run(wasmCode, funcName, imports, params);
|
||||
return impl->run(wasmCode, funcName, imports, params, j);
|
||||
}
|
||||
|
||||
std::int64_t
|
||||
|
||||
Reference in New Issue
Block a user