File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11import { defineConfig } from "@trigger.dev/sdk/v3" ;
2+ import { logger } from "../../packages/core/dist/commonjs/v3/logger-api.js" ;
23
34export default defineConfig ( {
45 runtime : "bun" ,
@@ -18,7 +19,11 @@ export default defineConfig({
1819 enableConsoleLogging : false ,
1920 logLevel : "info" ,
2021 onStart : async ( payload , { ctx } ) => {
21- console . log ( `Task ${ ctx . task . id } started ${ ctx . run . id } ` ) ;
22+ try {
23+ console . log ( `Task ${ ctx . task . id } started ${ ctx . run . id } ` ) ;
24+ } catch ( error ) {
25+ console . log ( error )
26+ }
2227 } ,
2328 onFailure : async ( payload , error , { ctx } ) => {
2429 console . log ( `Task ${ ctx . task . id } failed ${ ctx . run . id } ` ) ;
Original file line number Diff line number Diff line change @@ -31,7 +31,11 @@ export default defineConfig({
3131 enableConsoleLogging : false ,
3232 logLevel : "info" ,
3333 onStart : async ( payload , { ctx } ) => {
34- console . log ( `Task ${ ctx . task . id } started ${ ctx . run . id } ` ) ;
34+ try {
35+ console . log ( `Task ${ ctx . task . id } started ${ ctx . run . id } ` ) ;
36+ } catch ( error ) {
37+ console . log ( error )
38+ }
3539 } ,
3640 onFailure : async ( payload , error , { ctx } ) => {
3741 console . log (
You can’t perform that action at this time.
0 commit comments