File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,21 @@ const log = require('./utils/log.js')('core:api');
9
9
const common = require ( './utils/common.js' ) ;
10
10
const { processRequest} = require ( './utils/requestProcessor' ) ;
11
11
12
+ var t = [ "countly:" , "api" ] ;
13
+
14
+ if ( cluster . isMaster ) {
15
+ t . push ( "master" ) ;
16
+ t . push ( "node" ) ;
17
+ t . push ( process . argv [ 1 ] ) ;
18
+ }
19
+ else {
20
+ t . push ( "worker" ) ;
21
+ t . push ( "node" ) ;
22
+ }
23
+
24
+ // Finaly set the visible title
25
+ process . title = t . join ( ' ' ) ;
26
+
12
27
let workers = [ ] ;
13
28
14
29
/**
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
+ process . title = "countly: executor " + process . pid + " node " + process . argv [ 1 ] ;
4
+
3
5
process . on ( 'uncaughtException' , ( err ) => {
4
6
console . log ( 'Caught exception: %j' , err , err . stack ) ;
5
7
process . exit ( 1 ) ;
Original file line number Diff line number Diff line change
1
+ // Set process name
2
+ process . title = "countly: dashboard node " + process . argv [ 1 ] ;
3
+
1
4
var versionInfo = require ( './version.info' ) ,
2
5
COUNTLY_VERSION = versionInfo . version ,
3
6
COUNTLY_TYPE = versionInfo . type ,
You can’t perform that action at this time.
0 commit comments