Skip to content

Commit 1740745

Browse files
committed
feat: refine logs from WASM
Signed-off-by: quacumque <quacumque@fastmail.jp>
1 parent 307630f commit 1740745

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
@@ -96,7 +96,11 @@ const sharedConfig = {
9696
torii: {
9797
address: "0.0.0.0:8080",
9898
},
99-
logger: { format: "pretty", filter: "iroha_core=debug" },
99+
logger: {
100+
format: "pretty",
101+
// TODO: in iroha, change "WASM" module to something with "iroha_" prefix?
102+
filter: "iroha_core=debug,WASM=trace",
103+
},
100104
};
101105

102106
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)