disable debug and add log for update