add log and comment for dao redirect

The license of the file is wrong.