Fixed logging in production