add log for create viewer failed