New issue
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
Logger argument seems off #3363
Comments
Yeah, there seems to be some inconsistency here. The default logger implementation supports logging objects/arrays etc. when level is debug (because it forwards directly to console.log) but not for other levels (because colorette supports only string.
I think we can normalize logger to pass the argument through |
Released in 0.20.4 |
Environment
Knex version: 0.19.0
Database + version: postgres
OS: macOS
If issue is about TypeScript definitions, tag @lorefnon.
Bug
Logger type definition seems off. It says the argument is a
string
, however, inspecting it is a more complex object, withsql
,bindings
, and various other fields (sorry not sure what the correct type is).The text was updated successfully, but these errors were encountered: