fix(all): Improvements on debugging output.
This commit is contained in:
parent
34e9e9e384
commit
eb194f6885
2 changed files with 12 additions and 7 deletions
17
boot.js
17
boot.js
|
@ -3,16 +3,21 @@
|
||||||
const Fs = require('fs');
|
const Fs = require('fs');
|
||||||
const Path = require('path');
|
const Path = require('path');
|
||||||
const { exec } = require('child_process');
|
const { exec } = require('child_process');
|
||||||
|
var pjson = require('./package.json');
|
||||||
|
|
||||||
// Displays version of Node JS being used at runtime and others attributes.
|
// Displays version of Node JS being used at runtime and others attributes.
|
||||||
|
|
||||||
console.log(`[GB Runtime] NodeJS = ${process.version}`);
|
|
||||||
console.log(`[GB Runtime] platform = ${process.platform}`);
|
|
||||||
console.log(`[GB Runtime] architecture = ${process.arch}`);
|
|
||||||
console.log(`[GB Runtime] argv = ${process.argv}`);
|
|
||||||
console.log(`[GB Runtime] debugPort = ${process.debugPort}`);
|
|
||||||
|
|
||||||
var now = () => {
|
console.log(`[GB Runtime] BotServer = v${pjson.version}`);
|
||||||
|
console.log(`[GB Runtime] BotLib = v${pjson.dependencies.botlib}`);
|
||||||
|
console.log(`[GB Runtime] BotBuilder (MS) = v${pjson.dependencies.botbuilder}`);
|
||||||
|
console.log(`[GB Runtime] NodeJS = ${process.version}`);
|
||||||
|
console.log(`[GB Runtime] platform = ${process.platform}`);
|
||||||
|
console.log(`[GB Runtime] architecture = ${process.arch}`);
|
||||||
|
console.log(`[GB Runtime] argv = ${process.argv}`);
|
||||||
|
console.log(`[GB Runtime] debugPort = ${process.debugPort}`);
|
||||||
|
|
||||||
|
var now = () => {
|
||||||
return (new Date()).toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC';
|
return (new Date()).toISOString().replace(/T/, ' ').replace(/\..+/, '') + ' UTC';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/pragmatismo-io/BotServer.git"
|
"url": "https://github.com/GeneralBots/BotServer.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "shx rm -rf node_modules/ dist/ docs/reference",
|
"clean": "shx rm -rf node_modules/ dist/ docs/reference",
|
||||||
|
|
Loading…
Add table
Reference in a new issue