Skip to content

Commit

Permalink
support change log level run time
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Oct 7, 2024
1 parent 84df308 commit d3f7d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ module.exports = function(srf, logger) {
service_provider_sid: req.locals.service_provider_sid,
account_sid: req.locals.account_sid
}, {
...(account.enable_debug_log && {level: 'debug'})
...(req.locals.account.enable_debug_log && {level: 'debug'})
});

next();
Expand Down

0 comments on commit d3f7d46

Please sign in to comment.