mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-03-22 03:08:06 +00:00
remove sensitive data from log statement (#1522)
This commit is contained in:
@@ -211,7 +211,9 @@ module.exports = function(srf, logger) {
|
||||
if (account?.enable_debug_log) {
|
||||
req.locals.logger.level = 'debug';
|
||||
}
|
||||
logger.debug({accountInfo: req.locals?.accountInfo?.account}, `retrieved account info for ${account_sid}`);
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const {bucket_credential, ...safeAccount} = req.locals?.accountInfo?.account || {};
|
||||
logger.debug({accountInfo: safeAccount}, `retrieved account info for ${account_sid}`);
|
||||
next();
|
||||
} catch (err) {
|
||||
span.end();
|
||||
|
||||
Reference in New Issue
Block a user