Only enable logging in local.