Commit c1c899e05cb5a574bfff536953cc351f68a87905
1 parent
6f71c03c03
Exists in
master
Log label and process title
Showing 1 changed file with 3 additions and 2 deletions Side-by-side Diff
index.js
1 | 1 | "use strict"; |
2 | 2 | |
3 | -global.KOMODO_LOG_LABEL = 'MESSAGING'; | |
4 | - | |
5 | 3 | process.chdir(__dirname); |
6 | 4 | const fs = require('fs'); |
7 | 5 | fs.writeFileSync('pid.txt', process.pid); |
8 | 6 | |
7 | +global.KOMODO_LOG_LABEL = 'KOMODO-MESSAGING'; | |
8 | +process.title = global.KOMODO_LOG_LABEL; | |
9 | + | |
9 | 10 | const matrix = require('komodo-sdk/matrix'); |
10 | 11 | matrix.NODE_ENV = process.env.NODE_ENV; |
11 | 12 |