Skip to content

Commit 1bb7eca

Browse files
DX-9992 | Revert console transport override for error/warn levels
1 parent 0be338c commit 1bb7eca

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • packages/contentstack-utilities/src/logger

packages/contentstack-utilities/src/logger/logger.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@ export default class Logger {
8585
}
8686
}
8787

88-
// Errors and warnings must always reach the console, even when progress bars
89-
// suppress info/success/debug output — otherwise failures (e.g. an invalid
90-
// stack API key or a taxonomy error) are silently swallowed in progress mode.
91-
const isErrorOrWarn = level === 'error' || level === 'warn';
92-
93-
if (showConsoleLogs || isErrorOrWarn) {
88+
if (showConsoleLogs) {
9489
transports.push(
9590
new winston.transports.Console({
9691
format: winston.format.combine(

0 commit comments

Comments
 (0)