Fix logging errors introduced by last commit