changed useless error logs to debug