         var error: NSError?
         let statement = SQLiteDBStatement(connection: self, query: sqlStr, args: args, error: &error)
         if let error = error {
-            println("SQL error: \(error.localizedDescription) for SQL \(sqlStr).")
+            log.error("SQL error: \(error.localizedDescription) for SQL \(sqlStr).")
             statement?.close()
             return error
         }

        case SQLITE_FLOAT:
            ret = Double(sqlite3_column_double(statement.pointer, i))
        default:
            println("SwiftData Warning -> Column: \(index) is of an unrecognized type, returning nil")
        }

        return ret

        var msg = SDError.errorMessageFromCode(status)

        if (debug_enabled) {
            log.debug("SwiftData Error -> \(description)")
            log.debug("                -> Code: \(status) - \(msg)")
        }

        if let errMsg = String.fromCString(sqlite3_errmsg(sqliteDB)) {
            msg += " " + errMsg
            if (debug_enabled) {
                log.debug("                -> Details: \(errMsg)")
            }
        }

