From 281ae6638718d05dfc6244b46f4c608a74645bcc Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Sat, 11 Jun 2022 00:46:37 +0200 Subject: [PATCH] Print body error --- Sources/App/routes.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/App/routes.swift b/Sources/App/routes.swift index e95fd12..71ddc3e 100755 --- a/Sources/App/routes.swift +++ b/Sources/App/routes.swift @@ -33,7 +33,7 @@ func routes(_ app: Application) throws { throw Abort(.badRequest) } guard let buffer = request.body.data else { - log("Invalid body data") + log("Missing body data: \(request.body.description)") throw CapError.invalidBody } let data = Data(buffer: buffer)