Skip to content
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

Process all arguments debug.js style #134

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

tevch
Copy link

@tevch tevch commented Apr 18, 2024

In case of multiple log arguments

debug("Redis options", options);

native debug.js produces

package:server Redis options { host: 'redis.dev.aaa.io', port: '6379', password: 'some, no_ready_check: true, tls: { checkServerIdentity: [Function: checkServerIdentity] } }

So it appends all arguments

But in pino-debug it doesn't happen

What happens is just

{"level":"debug","time":1710872452769,"ns":"oauth2-authorizer:server","msg":"Redis options"}

debug.js Outdated
@@ -16,7 +18,10 @@ function debug (namespace) {
function disabled () {}
disabled.enabled = false
function enabled () {
return log.apply(logger, arguments)
//return log.apply(logger, arguments)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this line

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed

@codecov-commenter
Copy link

codecov-commenter commented Apr 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.07%. Comparing base (50ad036) to head (f84c9b1).
Report is 2 commits behind head on master.

❗ Current head f84c9b1 differs from pull request most recent head eb82734. Consider uploading reports for the commit eb82734 to get more accurate results

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #134      +/-   ##
==========================================
+ Coverage   98.00%   98.07%   +0.07%     
==========================================
  Files           2        2              
  Lines          50       52       +2     
==========================================
+ Hits           49       51       +2     
  Misses          1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants