Removed doctrine, changed error level for logging