update: save log only when session is found.