Commit 053b612d965bbb505a44ad64a37b9efa22b0e85b
1 parent
3b8740d7bd
Exists in
master
process.pid as string to comply with node14
Showing 1 changed file with 1 additions and 3 deletions Inline Diff
index.js
1 | "use strict"; | ||
2 | |||
3 | process.chdir(__dirname); | 1 | process.chdir(__dirname); |
4 | 2 | ||
5 | const fs = require('fs'); | 3 | const fs = require('fs'); |
6 | fs.writeFileSync('pid.txt', process.pid); | 4 | fs.writeFileSync('pid.txt', process.pid.toString()); |
7 | 5 | ||
8 | const config = require('komodo-sdk/config'); | 6 | const config = require('komodo-sdk/config'); |
9 | 7 | ||
10 | global.KOMODO_LOG_LABEL = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; | 8 | global.KOMODO_LOG_LABEL = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; |
11 | process.title = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; | 9 | process.title = `KOMODO-CENTER@${config.origin || 'TELEGRAM'}`; |
12 | 10 | ||
13 | require('./lib/transport'); | 11 | require('./lib/transport'); |
14 | 12 |