change some debug logs to error logs