@@ -69,8 +69,7 @@ class Graph {
6969 console . debug ( 'Executing node: ' , node ) ;
7070
7171 if ( node . type === 'outputNode' ) {
72- //this.logs.push(`Output: ${JSON.stringify(prevNodeOutputData)}`);
73- this . logger . add ( LogLevel . INFO , '' , { type : 'outputNode' , data : prevNodeOutputData } ) ;
72+ this . logger . add ( LogLevel . INFO , '' , { type : 'outputNode' , data : { output : prevNodeOutputData } } ) ;
7473 if ( this . caller === 'main' ) {
7574 useCanvasStore . getState ( ) . setOutputNode ( node . id , prevNodeOutputData ) ;
7675 }
@@ -109,15 +108,15 @@ class Graph {
109108 return new Promise ( ( resolve ) => setTimeout ( resolve , Math . min ( ms , this . timeout ) ) ) ;
110109 } ;
111110 await wait ( delay ) ;
112- this . logger . add ( LogLevel . INFO , '' , { type : 'delayNode' , data : delay } ) ;
111+ this . logger . add ( LogLevel . INFO , '' , { type : 'delayNode' , data : { delay } } ) ;
113112 result = {
114113 status : 'Success' ,
115114 data : prevNodeOutputData ,
116115 } ;
117116 }
118117
119118 if ( node . type === 'authNode' ) {
120- const aNode = new authNode ( node . data , this . envVariables ) ;
119+ const aNode = new authNode ( node . data , this . envVariables , this . logger ) ;
121120 this . auth = node . data . type ? aNode . evaluate ( ) : undefined ;
122121 result = {
123122 status : 'Success' ,
@@ -181,7 +180,7 @@ class Graph {
181180 }
182181
183182 if ( this . #checkTimeout( ) ) {
184- throw `Timeout of ${ this . timeout } ms exceeded, stopping graph run` ;
183+ throw Error ( `Timeout of ${ this . timeout } ms exceeded, stopping graph run` ) ;
185184 }
186185 } catch ( err ) {
187186 this . logger . add ( LogLevel . ERROR , `Flow failed due to ${ err } ` , node ) ;
0 commit comments