vapor / fluent-postgres-driver

🐘 PostgreSQL driver for Fluent.
MIT License
149 stars 53 forks source link

No member 'logger' #43

Closed grosch closed 6 years ago

grosch commented 6 years ago

My Package.resolved says I'm using this:

{
        "package": "FluentPostgreSQL",
        "repositoryURL": "https://github.com/vapor/fluent-postgresql.git",
        "state": {
          "branch": null,
          "revision": "e7011affaac21c60ce417139a376be8f21fd5815",
          "version": "1.0.0-rc.2.1.1"
        }
      },

When I try and compile I'm getting errors in PostgreSQLDatabase+LogSupporting.swift saying that there's no member 'logger', plus a bunch of other errors

screen shot 2018-04-25 at 10 41 38 pm

This is my Package.swift:

// swift-tools-version:4.0
import PackageDescription

let package = Package(
    name: "dts",
    dependencies: [
        .package(url: "https://github.com/vapor/vapor.git", from: "3.0.0-rc.2"),
    .package(url: "https://github.com/vapor/fluent-postgresql.git", from: "1.0.0-rc"),
    .package(url: "https://github.com/vapor/leaf.git", from: "3.0.0-rc.2")
    ],
    targets: [
        .target(name: "App", dependencies: ["FluentPostgreSQL", "Vapor", "Leaf"]),
        .target(name: "Run", dependencies: ["App"]),
        .testTarget(name: "AppTests", dependencies: ["App"])
    ]
)

I've done a clean, removed DerivedData directory, ran vapor update, and then regenerated and built the project.

tanner0101 commented 6 years ago

The logger property has been moved to PostgreSQLConnection.