File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export async function execWorker(
7272
7373 return payload ;
7474 } catch ( e ) {
75- logger . error ( 'execWorker error:' , e ) ;
75+ logger . error ( 'ExecWorker error:' , e ) ;
7676 const payload = {
7777 workerId : workerId || '' ,
7878 status : FunctionWorkerExecutionStatus . Failed ,
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export async function runCodeInVM(_code: string): Promise<{
2525 const ret = await runCodeInVM2 ( code ) ;
2626 return ret ;
2727 } catch ( err ) {
28- console . error (
28+ logger . error (
2929 '[Monitor] VM2 execution failed, falling back to isolated-vm:' ,
3030 err
3131 ) ;
@@ -37,12 +37,12 @@ export async function runCodeInVM(_code: string): Promise<{
3737 const ret = await runCodeInIVM ( code ) ;
3838 return ret ;
3939 } catch ( err ) {
40- console . error ( '[Monitor] isolated-vm execution failed:' , err ) ;
40+ logger . error ( '[Monitor] isolated-vm execution failed:' , err ) ;
4141 throw err ;
4242 }
4343 }
4444 } catch ( err ) {
45- console . error ( '[Monitor] Code execution failed:' , err ) ;
45+ logger . error ( '[Monitor] Code execution failed:' , err ) ;
4646 throw err ;
4747 }
4848}
@@ -94,6 +94,7 @@ ${sourceCode}`;
9494 copy : true ,
9595 } ) ;
9696 } catch ( e ) {
97+ console . trace ( e ) ;
9798 err = e ;
9899 }
99100
You can’t perform that action at this time.
0 commit comments