Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We had a typo in our code that led to this error: https://github.com/vapor/vapor/blob/main/Sources/Vapor/Routing/Parameters%2BRequire.swift#L23. It was hard to debug in part because of the vague Abort(.internalServerError). I suggest adding a reason value to the Abort, unless that would be considered a breaking change. I can submit a PR if you're interested.
Abort(.internalServerError)
reason
Abort
The text was updated successfully, but these errors were encountered:
@rausnitz I think a log should definitely be added and probably a reason as well. Happy for a PR or you can leave it for someone else to pick up
Sorry, something went wrong.
@0xTim If I were to introduce a Logger into this function, should I follow the pattern used here and just give it a different label?
Logger
vapor/Sources/Vapor/Utilities/DotEnv.swift
Line 46 in 2567c05
You can just use the requests logger, with req.logger.debug etc
req.logger.debug
require()
BennyDeBock
Successfully merging a pull request may close this issue.
We had a typo in our code that led to this error: https://github.com/vapor/vapor/blob/main/Sources/Vapor/Routing/Parameters%2BRequire.swift#L23. It was hard to debug in part because of the vague
Abort(.internalServerError). I suggest adding areasonvalue to theAbort, unless that would be considered a breaking change. I can submit a PR if you're interested.The text was updated successfully, but these errors were encountered: