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

didn't use logNetwork middleware but the logs are printed #30

Closed
vin-chen opened this issue Mar 7, 2019 · 0 comments
Closed

didn't use logNetwork middleware but the logs are printed #30

vin-chen opened this issue Mar 7, 2019 · 0 comments

Comments

@vin-chen
Copy link

vin-chen commented Mar 7, 2019

hi experts,

I am using cf-nodejs-logging-support, v3.0.6 in node application, I am using express, but didn't add this lib as a middleware, the problem is I can still see log entries for network requests, do you have any idea with this?

var express = require('express');
var bodyParser = require('body-parser');
var xsenv = require('@sap/xsenv');
var xssec = require('@sap/xssec');
var log = require('cf-nodejs-logging-support');

var app = express();
passport.use(new xssec.JWTStrategy(xsenv.getServices({uaa:{tag:'xsuaa'}}).uaa));
app.use(bodyParser.json());
app.use(passport.initialize());
app.use( passport.authenticate('JWT', {session: false}));
var urlencodedParser = bodyParser.urlencoded({ extended: false });

//app.use(log.logNetwork);  <- this middleware is not used
@vin-chen vin-chen closed this as completed Mar 7, 2019
@vin-chen vin-chen changed the title didn't use middle ware but the logs are printed didn't use logNetwork middleware but the logs are printed Mar 7, 2019
@vin-chen vin-chen reopened this Mar 7, 2019
@vin-chen vin-chen closed this as completed Mar 7, 2019
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

No branches or pull requests

1 participant