summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAya Morisawa <AyaMorisawa4869@gmail.com>2017-01-03 04:35:32 +0900
committerAya Morisawa <AyaMorisawa4869@gmail.com>2017-01-03 04:35:32 +0900
commitcdd26a5aaab6ca45617b6b840dac330b6d0804b9 (patch)
treec292e24e406b0a560130e2e8b76f6212af43c6a8 /src/utils
parentRemove comments (diff)
downloadsharkey-cdd26a5aaab6ca45617b6b840dac330b6d0804b9.tar.gz
sharkey-cdd26a5aaab6ca45617b6b840dac330b6d0804b9.tar.bz2
sharkey-cdd26a5aaab6ca45617b6b840dac330b6d0804b9.zip
Update MachineInfo
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/machineInfo.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils/machineInfo.ts b/src/utils/machineInfo.ts
index 9cf61eb6d5..820f274ce3 100644
--- a/src/utils/machineInfo.ts
+++ b/src/utils/machineInfo.ts
@@ -6,7 +6,10 @@ export default class MachineInfo {
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);
let logger = new Logger('Machine');
- logger.info(os.hostname());
+ logger.info(`Hostname: ${os.hostname()}`);
+ logger.info(`Platform: ${process.platform}`);
+ logger.info(`Architecture: ${process.arch}`);
+ logger.info(`Node.js: ${process.version}`);
logger.info(`CPU: ${os.cpus().length}core`);
logger.info(`MEM: ${totalmem}GB (available: ${freemem}GB)`);
}