Fix logging in #188