Skip to content

Commit 5862cf5

Browse files
committed
Drop import
1 parent c98a4ed commit 5862cf5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sources/App/Core/CFRayRouteLoggingMiddleware.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
import Dependencies
1615
import Vapor
1716

1817

@@ -23,12 +22,11 @@ public final class CFRayRouteLoggingMiddleware: Middleware {
2322
public init(logLevel: Logger.Level = .info) {
2423
self.logLevel = logLevel
2524
}
26-
25+
2726
public func respond(to request: Request, chainingTo next: Responder) -> EventLoopFuture<Response> {
2827
guard let cfray = request.headers.first(name: "cf-ray") else {
2928
return next.respond(to: request)
3029
}
31-
3230
request.logger[metadataKey: "cf-ray"] = .string(cfray)
3331
request.logger.log(level: self.logLevel, "\(request.method) \(request.url.path.removingPercentEncoding ?? request.url.path)")
3432
return next.respond(to: request)

0 commit comments

Comments
 (0)