Added debug log for recErr()
Improved err logging