Added logging for debugging AMQ-4997