Added logging just before the outgoing invocation

#2754