From b81d08b3260f1da96f87d6c6c6433017a5dce080 Mon Sep 17 00:00:00 2001 From: Shadi Haidar Date: Fri, 15 Jun 2018 16:18:11 -0400 Subject: Extend API with tenant name remove cloudify.uploadBlueprint() from cloudify.js debug log Issue-ID: DCAEGEN2-548 Change-Id: I800766aab4e95a945477c0a6eeb5adfc41a1203d Signed-off-by: Shadi Haidar --- deployment-handler.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'deployment-handler.js') diff --git a/deployment-handler.js b/deployment-handler.js index bc1a85a..2ae1391 100644 --- a/deployment-handler.js +++ b/deployment-handler.js @@ -1,5 +1,5 @@ /* -Copyright(c) 2017 AT&T Intellectual Property. All rights reserved. +Copyright(c) 2017-2018 AT&T Intellectual Property. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18,7 +18,7 @@ See the License for the specific language governing permissions and limitations "use strict"; -const API_VERSION = "4.2.0"; +const API_VERSION = "4.3.0"; const fs = require('fs'); const util = require('util'); @@ -78,6 +78,7 @@ const start = function(config) { process.mainModule.exports.config = config; log.info(null, "Configuration: " + JSON.stringify(config)); + console.log( (new Date()) + ": Configuration: " + JSON.stringify(config, undefined, 2) ); set_app(); @@ -119,9 +120,11 @@ const start = function(config) { /* Set up handling for terminate signal */ process.on('SIGTERM', function() { var startTime = new Date(); - log.metrics(null, {startTime: startTime, complete: true}, "Deployment Handler API shutting down.") + log.metrics(null, {startTime: startTime, complete: true}, "Deployment Handler API shutting down."); + console.log( "startTime: " + startTime + ": Deployment Handler API shutting down." ) server.close(function() { - log.metrics(null, {startTime: startTime, complete: true}, "Deployment Handler API server shut down.") + log.metrics(null, {startTime: startTime, complete: true}, "Deployment Handler API server shut down."); + console.log( "startTime: " + startTime + ": Deployment Handler API shutting down" ) }); }); @@ -134,7 +137,8 @@ const start = function(config) { process.on('beforeExit', function() { if (!loggedExit) { loggedExit = true; - log.metrics(null, {startTime: startTime, complete: true}, "Deployment Handler process exiting.") + log.metrics(null, {startTime: startTime, complete: true}, "Deployment Handler process exiting."); + console.log( "startTime: " + startTime + ": Deployment Handler process exiting." ) } }); }; -- cgit 1.2.3-korg