summaryrefslogtreecommitdiffstats
path: root/cds-ui/server/src/controllers/ping.controller.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/server/src/controllers/ping.controller.ts')
-rw-r--r--cds-ui/server/src/controllers/ping.controller.ts4
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',