Skip to content

Commit 09f2086

Browse files
author
Josh Long
committed
ref: remove checks on config flag
1 parent f40c203 commit 09f2086

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

packages/misc/src/lib/misc.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,6 @@ export const logWithRequestId = (id: string, ...args: any) => {
302302
return;
303303
}
304304

305-
// config is loaded, and debug is true
306-
307305
// if there are there are logs in buffer, print them first and empty the buffer.
308306
while (logBuffer.length > 0) {
309307
const log = logBuffer.shift() ?? '';
@@ -329,8 +327,6 @@ export const logErrorWithRequestId = (id: string, ...args: any) => {
329327
return;
330328
}
331329

332-
// config is loaded, and debug is true
333-
334330
// if there are there are logs in buffer, print them first and empty the buffer.
335331
while (logBuffer.length > 0) {
336332
const log = logBuffer.shift() ?? '';
@@ -356,11 +352,6 @@ export const logError = (...args: any) => {
356352
return;
357353
}
358354

359-
if (globalThis?.litConfig?.debug !== true) {
360-
return;
361-
}
362-
// config is loaded, and debug is true
363-
364355
// if there are there are logs in buffer, print them first and empty the buffer.
365356
while (logBuffer.length > 0) {
366357
const log = logBuffer.shift() ?? '';

0 commit comments

Comments
 (0)