[ronald] Fix logging part and add logging on failure