File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,12 +28,7 @@ const wol = require("./wol")
2828app . use ( "/" , auth )
2929
3030app . 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
3934app . listen ( env . ENV . port , ( ) => {
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments