diff options
author | Dan Timoney <dtimoney@att.com> | 2019-05-31 18:29:22 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-31 18:29:22 +0000 |
commit | 3fa6fd4c5a9f6bf5ca522b7dffe07c77626e6403 (patch) | |
tree | 7660b220d07a8e30acb11426db4a1a487b4b3a1a /cds-ui/server/src/sequence.ts | |
parent | 32d132a78288521798d302cafbd9a7eac9121cae (diff) | |
parent | 174110278bd235b7bf878fc4bd773078d633ce00 (diff) |
Merge "Add logger to the server"
Diffstat (limited to 'cds-ui/server/src/sequence.ts')
-rw-r--r-- | cds-ui/server/src/sequence.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cds-ui/server/src/sequence.ts b/cds-ui/server/src/sequence.ts index b27093147..b282cbc62 100644 --- a/cds-ui/server/src/sequence.ts +++ b/cds-ui/server/src/sequence.ts @@ -30,6 +30,7 @@ import { Send, SequenceHandler, } from '@loopback/rest'; +import { logger } from './logger/logger'; const SequenceActions = RestBindings.SequenceActions; @@ -45,6 +46,8 @@ export class MySequence implements SequenceHandler { async handle(context: RequestContext) { try { const { request, response } = context; + logger.info("Incoming request from %s %s and with header %s query %s params %s", + request.method, request.url, JSON.stringify(request.headers), JSON.stringify(request.query), JSON.stringify(request.params)) const route = this.findRoute(request); const args = await this.parseParams(request, route); const result = await this.invoke(route, args); |