summaryrefslogtreecommitdiffstats
path: root/deployment-handler.js
diff options
context:
space:
mode:
authorShadi Haidar <sh1986@att.com>2018-06-15 16:18:11 -0400
committerShadi Haidar <sh1986@att.com>2018-06-19 11:56:24 -0400
commitb81d08b3260f1da96f87d6c6c6433017a5dce080 (patch)
treef88d3862ca6d4097361f85a8f02a19b662258b99 /deployment-handler.js
parent7a91f8c03b2f177568dd02436df0bd908d8bb293 (diff)
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 <sh1986@att.com>
Diffstat (limited to 'deployment-handler.js')
-rw-r--r--deployment-handler.js14
1 files changed, 9 insertions, 5 deletions
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." )
}
});
};