Fix logger on API