Minor logging bug-fix