Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
tank committed Mar 24, 2023
1 parent bdb5029 commit 1211820
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aggregator-proxy/src/AggregatorProxyCallback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export default function AggregatorProxyCallback(
ctx.body.nonce = nounce;
ctx.body.blsAddress = blsWallet.address;
} catch (error) {
console.log("bundle error=", error);
ctx.status = 500;
ctx.body = "execute bundle error:" + error;
return;
Expand Down Expand Up @@ -244,6 +245,7 @@ export default function AggregatorProxyCallback(
ctx.status = 200;
ctx.body = estimateFeeResult;
} catch (error) {
console.log("estimateFee error=", error);
ctx.status = 500;
ctx.body = "execute bundle error:" + error;
return;
Expand Down Expand Up @@ -290,6 +292,7 @@ export default function AggregatorProxyCallback(
ctx.body = addResult;
ctx.body.feeRequired = estimateFeeResult.feeRequired;
} catch (error) {
console.log("bundleForLocal error=", error);
ctx.status = 500;
ctx.body = "execute bundle error:" + error;
return;
Expand Down Expand Up @@ -333,6 +336,7 @@ export default function AggregatorProxyCallback(
ctx.status = 200;
ctx.body = estimateFeeResult;
} catch (error) {
console.log("estimateFeeForLocal error=", error);
ctx.status = 500;
ctx.body = "execute bundle error:" + error;
return;
Expand Down
1 change: 1 addition & 0 deletions aggregator-proxy/src/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ async function sendTrans(apiHost: string, method: string, data: any, httpMethod:
}else {
res = await axios.get(apiHost + "/" + method + "?" + data, { headers });
}
console.log("res=", res)
if (res.status === 200) {
return res.data;
}
Expand Down

0 comments on commit 1211820

Please sign in to comment.