File tree 2 files changed +11
-16
lines changed
2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change 1
1
import pino from 'pino' ;
2
2
3
- const env = process . env . NODE_ENV ;
4
- const isLocal = ( env !== 'production' || env !== 'stage' ) ;
5
-
6
- export default isLocal ? pino ( ) : pino ( ) ;
3
+ export default pino ( ) ;
Original file line number Diff line number Diff line change @@ -20,20 +20,18 @@ const gracefulShutdown = (msg) => {
20
20
} ;
21
21
22
22
// Server start
23
- app . on ( 'ready' , ( ) => {
24
- SERVER . listen ( PORT , '0.0.0.0' , ( ) => {
25
- logger . info ( `Running on port: ${ PORT } ` ) ;
23
+ SERVER . listen ( PORT , '0.0.0.0' , ( ) => {
24
+ logger . info ( `Running on port: ${ PORT } ` ) ;
26
25
27
- // Handle kill commands
28
- process . on ( 'SIGTERM' , gracefulShutdown ) ;
26
+ // Handle kill commands
27
+ process . on ( 'SIGTERM' , gracefulShutdown ) ;
29
28
30
- // Handle interrupts
31
- process . on ( 'SIGINT' , gracefulShutdown ) ;
29
+ // Handle interrupts
30
+ process . on ( 'SIGINT' , gracefulShutdown ) ;
32
31
33
- // Prevent dirty exit on uncaught exceptions:
34
- process . on ( 'uncaughtException' , gracefulShutdown ) ;
32
+ // Prevent dirty exit on uncaught exceptions:
33
+ process . on ( 'uncaughtException' , gracefulShutdown ) ;
35
34
36
- // Prevent dirty exit on unhandled promise rejection
37
- process . on ( 'unhandledRejection' , gracefulShutdown ) ;
38
- } ) ;
35
+ // Prevent dirty exit on unhandled promise rejection
36
+ process . on ( 'unhandledRejection' , gracefulShutdown ) ;
39
37
} ) ;
You can’t perform that action at this time.
0 commit comments