Fix logging in local environments