changed a error log stmt to debug