Fix logging on server