@@ -162,18 +162,17 @@ export class Trace {
162
162
digest = this . approximateDigests ,
163
163
event = parse ( "traceData.hookType" ) ( options ) || "internal" ,
164
164
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 ) ;
166
166
console . log ( `Transition #${ tid } Digest #${ digest } : Hook -> ${ event } context: ${ context } , ${ maxLength ( 200 , name ) } ` ) ;
167
167
}
168
168
169
169
/** called by ui-router code */
170
- traceHookResult ( hookResult : HookResult , transitionResult : Promise < any > , transitionOptions : any ) {
170
+ traceHookResult ( hookResult : HookResult , transitionOptions : any ) {
171
171
if ( ! this . enabled ( Category . HOOK ) ) return ;
172
172
let tid = parse ( "transition.$id" ) ( transitionOptions ) ,
173
173
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 ) } ` ) ;
177
176
}
178
177
179
178
/** called by ui-router code */
0 commit comments