Fix logging usage