Log less lines on SQL errors