log api doesn't work