Skip to content

Commit 8c022ca

Browse files
committed
feat: refine logs from WASM
Signed-off-by: quacumque <quacumque@fastmail.jp>
1 parent 49a684a commit 8c022ca

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

generator/mod.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ const sharedConfig = {
9797
torii: {
9898
address: "0.0.0.0:8080",
9999
},
100-
logger: { format: "pretty", filter: "iroha_core=debug" },
100+
logger: {
101+
format: "pretty",
102+
// TODO: in iroha, change "WASM" module to something with "iroha_" prefix?
103+
filter: "iroha_core=debug,WASM=trace",
104+
},
101105
};
102106

103107
function chainToStr(chain: ChainId): string {

trigger/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct HubChainTransferPayload {
130130

131131
#[iroha_trigger::main]
132132
fn main(host: Iroha, ctx: Context) {
133-
main_result(host, ctx).unwrap();
133+
main_result(host, ctx).dbg_unwrap();
134134
}
135135

136136
fn main_result(host: Iroha, ctx: Context) -> Result<()> {

0 commit comments

Comments
 (0)