mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Start auth-mock with stf local
and make the log tag clearer.
This commit is contained in:
parent
2b46ff41d3
commit
e924b73394
3 changed files with 23 additions and 5 deletions
|
@ -9,7 +9,7 @@ var ldaputil = require('../../util/ldaputil')
|
|||
var jwtutil = require('../../util/jwtutil')
|
||||
|
||||
module.exports = function(options) {
|
||||
var log = logger.createLogger('app')
|
||||
var log = logger.createLogger('auth-ldap')
|
||||
, app = express()
|
||||
|
||||
app.use(express.cookieParser())
|
||||
|
@ -26,7 +26,7 @@ module.exports = function(options) {
|
|||
})
|
||||
|
||||
app.post('/auth', function(req, res) {
|
||||
var log = logger.createLogger('auth')
|
||||
var log = logger.createLogger('auth-ldap')
|
||||
log.setLocalIdentifier(req.ip)
|
||||
switch (req.accepts(['json'])) {
|
||||
case 'json':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue