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/controllers | |
parent | 32d132a78288521798d302cafbd9a7eac9121cae (diff) | |
parent | 174110278bd235b7bf878fc4bd773078d633ce00 (diff) |
Merge "Add logger to the server"
Diffstat (limited to 'cds-ui/server/src/controllers')
-rw-r--r-- | cds-ui/server/src/controllers/ping.controller.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cds-ui/server/src/controllers/ping.controller.ts b/cds-ui/server/src/controllers/ping.controller.ts index d3098bc69..660863a1c 100644 --- a/cds-ui/server/src/controllers/ping.controller.ts +++ b/cds-ui/server/src/controllers/ping.controller.ts @@ -19,8 +19,9 @@ limitations under the License. ============LICENSE_END============================================ */ -import { Request, RestBindings, get, ResponseObject } from '@loopback/rest'; import { inject } from '@loopback/context'; +import { get, Request, ResponseObject, RestBindings } from '@loopback/rest'; +import { logger } from '../logger/logger'; /** * OpenAPI response for ping() @@ -61,6 +62,7 @@ export class PingController { }, }) ping(): object { + logger.warn('Calling ping from %s', this.req.url) // Reply with a greeting, the current time, the url, and request headers return { greeting: 'Hello from LoopBack', |