Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cf-nodejs-logging-support

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-nodejs-logging-support - npm Package Compare versions

Comparing version 5.1.1 to 5.2.0

28

cf-nodejs-logging-support-core/log-core.js

@@ -333,8 +333,11 @@ var util = require("util");

var req = this;
if (req.logObject != null) {
logObject.correlation_id = req.logObject.correlation_id;
if (req.logObject.request_id != null) {
logObject.request_id = req.logObject.request_id;
var ctx = this;
if (ctx.logObject != null) {
logObject.correlation_id = ctx.logObject.correlation_id;
if (ctx.logObject.tenant_id != null) {
logObject.tenant_id = ctx.logObject.tenant_id;
}
if (ctx.logObject.request_id != null) {
logObject.request_id = ctx.logObject.request_id;
}
}

@@ -363,6 +366,6 @@

var getCorrelationId = function () {
var req = this;
if (req.logObject != null) {
if (req.logObject.correlation_id != null) {
return req.logObject.correlation_id;
var ctx = this;
if (ctx.logObject != null) {
if (ctx.logObject.correlation_id != null) {
return ctx.logObject.correlation_id;
}

@@ -375,6 +378,6 @@ }

var setCorrelationId = function (correlationId) {
var req = this;
if (req.logObject != null) {
var ctx = this;
if (ctx.logObject != null) {
if (uuidCheck.exec(correlationId)) {
req.logObject.correlation_id = correlationId;
ctx.logObject.correlation_id = correlationId;
return true;

@@ -483,3 +486,2 @@ }

var bindDynLogLevel = function (token, req) {
var payload = verifyAndDecodeJWT(token, dynLogLevelKey);

@@ -486,0 +488,0 @@

@@ -286,2 +286,10 @@ var uuid = require("uuid/v4");

}, {
name: "tenant_id",
mandatory: true,
source: {
type: "header",
name: "tenantid"
},
default: "-"
}, {
name: "level",

@@ -288,0 +296,0 @@ mandatory: true,

{
"name": "cf-nodejs-logging-support",
"version": "5.1.1",
"version": "5.2.0",
"description": "Logging tool for Cloud Foundry",

@@ -5,0 +5,0 @@ "keywords": [

@@ -191,2 +191,3 @@ # Node.js Logging Support for Cloud Foundry

- request_id
- tenant_id

@@ -193,0 +194,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc