added api type to log