Skip to content

Commit

Permalink
add logger to ldap connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Jucker committed Nov 30, 2018
1 parent 9bf6df9 commit 588a90b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"atob": "^2.0.3",
"babel-polyfill": "^6.26.0",
"body-parser": "^1.18.2",
"bunyan-winston-adapter": "^0.2.0",
"cors": "^2.8.4",
"express": "^4.16.3",
"jsonwebtoken": "^8.2.0",
Expand Down
2 changes: 2 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import express from 'express';
import bodyParser from 'body-parser';
import cors from 'cors';
import morgan from 'morgan';
import bunyanWinstonAdapter from 'bunyan-winston-adapter';
import ldap from 'ldapjs';
import {config} from './config';
import logger from './logger';
Expand All @@ -21,6 +22,7 @@ let ldapClient = new Client(
maxDelay: config.ldap.reconnectMaxDelay,
failAfter: config.ldap.reconnectFailAfter,
},
log: bunyanWinstonAdapter.createAdapter(logger),
}),
config.ldap.baseDn,
config.ldap.bindDn,
Expand Down

0 comments on commit 588a90b

Please sign in to comment.