Skip to content

Commit

Permalink
feat: vite connected logs changed to console.debug (#7733)
Browse files Browse the repository at this point in the history
Co-authored-by: patak-dev <matias.capeletto@gmail.com>
  • Loading branch information
WORMSS and patak-dev committed May 19, 2022
1 parent 67d273c commit 9f00c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vite/src/client/client.ts
Expand Up @@ -13,7 +13,7 @@ declare const __HMR_PORT__: string
declare const __HMR_TIMEOUT__: number
declare const __HMR_ENABLE_OVERLAY__: boolean

console.log('[vite] connecting...')
console.debug('[vite] connecting...')

// use server configuration, then fallback to inference
const socketProtocol =
Expand Down Expand Up @@ -64,7 +64,7 @@ let isFirstUpdate = true
async function handleMessage(payload: HMRPayload) {
switch (payload.type) {
case 'connected':
console.log(`[vite] connected.`)
console.debug(`[vite] connected.`)
sendMessageBuffer()
// proxy(nginx, docker) hmr ws maybe caused timeout,
// so send ping package let ws keep alive.
Expand Down

0 comments on commit 9f00c41

Please sign in to comment.