convert debugs to logs