File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,4 +73,4 @@ export const INSPECT_DEBUGGER_PORT = 5858
73
73
74
74
export const cancellableMethods = new Set ( [ 'GET' , 'OPTIONS' , 'HEAD' ] )
75
75
76
- export const LOG_CLIENT_INIT_TIMEOUT = 5000
76
+ export const LOG_CLIENT_INIT_TIMEOUT_MS = 5000
Original file line number Diff line number Diff line change 1
- import { APP , LOG_CLIENT_INIT_TIMEOUT } from '../../constants'
1
+ import { APP , LOG_CLIENT_INIT_TIMEOUT_MS } from '../../constants'
2
2
import { cleanError } from '../../utils/error'
3
3
import { cleanLog } from '../../utils/log'
4
4
import { LogClient } from '@vtex/diagnostics-nodejs/dist/types' ;
@@ -43,7 +43,7 @@ export class Logger {
43
43
this . clientInitPromise = ( async ( ) => {
44
44
try {
45
45
const timeoutPromise = new Promise < never > ( ( _ , reject ) => {
46
- setTimeout ( ( ) => reject ( new Error ( 'Log client initialization timeout' ) ) , LOG_CLIENT_INIT_TIMEOUT ) ;
46
+ setTimeout ( ( ) => reject ( new Error ( 'Log client initialization timeout' ) ) , LOG_CLIENT_INIT_TIMEOUT_MS ) ;
47
47
} ) ;
48
48
49
49
this . logClient = await Promise . race ( [
You can’t perform that action at this time.
0 commit comments