mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-10-04 02:04:12 +00:00
remove sensitive data from log statement (#1522)
This commit is contained in:
+3
-1
@@ -211,7 +211,9 @@ module.exports = function(srf, logger) {
|
|||||||
if (account?.enable_debug_log) {
|
if (account?.enable_debug_log) {
|
||||||
req.locals.logger.level = 'debug';
|
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();
|
next();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
span.end();
|
span.end();
|
||||||
|
|||||||
Reference in New Issue
Block a user