api/log: cleanup whitespace and unnecessary logs