Skip to content

Commit 382b00a

Browse files
committed
debugging
1 parent f41f347 commit 382b00a

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/app.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ const wol = require("./wol")
2828
app.use("/", auth)
2929

3030
app.get("/data", async (req, res) => {
31-
try {
32-
await wol(req, res)
33-
} catch (err) {
34-
log.logger.error("Unhandled error in /data:", err)
35-
res.status(500).send("Internal server error")
36-
}
31+
await wol(req, res)
3732
})
3833

3934
app.listen(env.ENV.port, () => {

src/wol.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,15 @@ async function startProcessing(req, res) {
212212

213213
const dockerRes = await post(ENV.woldURL, { query })
214214

215+
logger.error("After wold")
216+
215217
if (dockerRes?.output && ENV.exposeLogs) {
216218
output += dockerRes.output
217219
}
218220
}
219221

222+
logger.debug("Before res.json()")
223+
220224
return res.json({
221225
url: originalUrl,
222226
log: output,

0 commit comments

Comments
 (0)