add some log to debug error.