Skip to content

Commit

Permalink
test: log output
Browse files Browse the repository at this point in the history
  • Loading branch information
hyc1230 committed Dec 12, 2023
1 parent 2d3787f commit 6b84b48
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ apis.forEach((e) => {
app.get(e.path, (req, res, next) => {
(async (req, res) => {
const rp = await fetch(e.rainyun_apiurl, e.fetch_options);
res.status(rp.status).send(await rp.text());
const txt = await rp.text();
console.log("Status", rp.status);
console.log("Response", txt);
res.status(rp.status).send(txt);
})(req, res).catch(next);
});
});
Expand Down

0 comments on commit 6b84b48

Please sign in to comment.