File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,4 +73,4 @@ export const INSPECT_DEBUGGER_PORT = 5858
7373
7474export const cancellableMethods = new Set ( [ 'GET' , 'OPTIONS' , 'HEAD' ] )
7575
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'
22import { cleanError } from '../../utils/error'
33import { cleanLog } from '../../utils/log'
44import { LogClient } from '@vtex/diagnostics-nodejs/dist/types' ;
@@ -43,7 +43,7 @@ export class Logger {
4343 this . clientInitPromise = ( async ( ) => {
4444 try {
4545 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 ) ;
4747 } ) ;
4848
4949 this . logClient = await Promise . race ( [
You can’t perform that action at this time.
0 commit comments