We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var logger = Logger(label: "My Logger") logger.logLevel = .trace // to show label let sqldb = app.db as! SQLDatabase let logdb = sqldb.logging(to: logger) try! logdb.raw("select 1;").run().wait() // Expected: [ My Logger ] [ DEBUG ] select 1; [] [database-id: mysql] // Actual : [ codes.vapor.application ] [ DEBUG ] select 1; [] [database-id: mysql]
The type of logdb is CustomLoggerSQLDatabase. Its execute method simply calls wrapped database's execute. logger is unused.
logdb
CustomLoggerSQLDatabase
execute
database
logger
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The type of
logdb
isCustomLoggerSQLDatabase
.Its
execute
method simply calls wrappeddatabase
'sexecute
.logger
is unused.The text was updated successfully, but these errors were encountered: