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
WHERE column LIKE '%s%'
logger.info(`WHERE column LIKE '%s%'`, {sql: true})
will log WHERE column LIKE '[object Object]%' Escaping the % will
WHERE column LIKE '[object Object]%'
%
logger.info(`WHERE column LIKE '%%s%%'`, {sql: true})
will log WHERE column LIKE '%%s%%'
WHERE column LIKE '%%s%%'
It's caused by: https://github.com/winstonjs/winston/blob/master/lib/winston/logger.js#L181
I tried raising an issue with util.format, but they won't fix a bug that was introduced doing performance work: nodejs/node#12362
The text was updated successfully, but these errors were encountered:
It's suggested to use npm install printf...
npm install printf
Sorry, something went wrong.
No branches or pull requests
will log
WHERE column LIKE '[object Object]%'
Escaping the
%
willwill log
WHERE column LIKE '%%s%%'
It's caused by:
https://github.com/winstonjs/winston/blob/master/lib/winston/logger.js#L181
I tried raising an issue with util.format, but they won't fix a bug that was introduced doing performance work: nodejs/node#12362
The text was updated successfully, but these errors were encountered: