Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions packages/contentstack-utilities/src/logger/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,7 @@ export default class Logger {
}
}

// Errors and warnings must always reach the console, even when progress bars
// suppress info/success/debug output — otherwise failures (e.g. an invalid
// stack API key or a taxonomy error) are silently swallowed in progress mode.
const isErrorOrWarn = level === 'error' || level === 'warn';

if (showConsoleLogs || isErrorOrWarn) {
if (showConsoleLogs) {
transports.push(
new winston.transports.Console({
format: winston.format.combine(
Expand Down
Loading