test($q): improve logging of callback invocations