fix(logging): fix logging errors in production mode