Logger writes to console if there is a SqlException thrown when logging to the DB