Replaces 'info' with 'debug' for log levels

Changes log level 'info' to 'debug' in error handling
to improve granularity in log outputs. Enhances monitoring
capabilities by categorizing non-essential logs separately.
This commit is contained in:
AlexKucera committed 2025-11-08 18:38:24 +01:00
1 parent 5034e111eb
commit 003d6d105b
1 file changed
+3 -3
+3 -3
View File
@@ -9,7 +9,7 @@
* - Consistent error messaging and logging
* - Batch export result tracking and reporting
* - User-facing notices with appropriate durations
* - Support for different log levels (error, warn, info)
* - Support for different log levels (error, warn, debug)
* - Specialized handlers for different error types (dependency, processing, validation)
*/
@@ -43,7 +43,7 @@ export interface ExportError {
operation: string;
error: Error | string;
shouldShowNotice?: boolean;
logLevel?: 'error' | 'warn' | 'info';
logLevel?: 'error' | 'warn' | 'debug';
}
/**
@@ -180,7 +180,7 @@ export class ExportErrorHandler {
case 'warn':
console.warn(`${operation}:`, error);
break;
case 'info':
case 'debug':
console.debug(`${operation}:`, error);
break;
}