Fix logging output