@@ -162,18 +162,17 @@ export class Trace {
162162 digest = this . approximateDigests ,
163163 event = parse ( "traceData.hookType" ) ( options ) || "internal" ,
164164 context = parse ( "traceData.context.state.name" ) ( options ) || parse ( "traceData.context" ) ( options ) || "unknown" ,
165- name = functionToString ( ( step as any ) . hookFn ) ;
165+ name = functionToString ( ( step as any ) . eventHook . callback ) ;
166166 console . log ( `Transition #${ tid } Digest #${ digest } : Hook -> ${ event } context: ${ context } , ${ maxLength ( 200 , name ) } ` ) ;
167167 }
168168
169169 /** called by ui-router code */
170- traceHookResult ( hookResult : HookResult , transitionResult : Promise < any > , transitionOptions : any ) {
170+ traceHookResult ( hookResult : HookResult , transitionOptions : any ) {
171171 if ( ! this . enabled ( Category . HOOK ) ) return ;
172172 let tid = parse ( "transition.$id" ) ( transitionOptions ) ,
173173 digest = this . approximateDigests ,
174- hookResultStr = stringify ( hookResult ) ,
175- transitionResultStr = stringify ( transitionResult ) ;
176- console . log ( `Transition #${ tid } Digest #${ digest } : <- Hook returned: ${ maxLength ( 200 , hookResultStr ) } , transition result: ${ maxLength ( 200 , transitionResultStr ) } ` ) ;
174+ hookResultStr = stringify ( hookResult ) ;
175+ console . log ( `Transition #${ tid } Digest #${ digest } : <- Hook returned: ${ maxLength ( 200 , hookResultStr ) } ` ) ;
177176 }
178177
179178 /** called by ui-router code */
0 commit comments