[JENKINS-26118] Add details and optimize logging

Tested manually