add debug for log upload