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:
1 file changed
+3
-3
@@ -9,7 +9,7 @@
|
|||||||
* - Consistent error messaging and logging
|
* - Consistent error messaging and logging
|
||||||
* - Batch export result tracking and reporting
|
* - Batch export result tracking and reporting
|
||||||
* - User-facing notices with appropriate durations
|
* - 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)
|
* - Specialized handlers for different error types (dependency, processing, validation)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ export interface ExportError {
|
|||||||
operation: string;
|
operation: string;
|
||||||
error: Error | string;
|
error: Error | string;
|
||||||
shouldShowNotice?: boolean;
|
shouldShowNotice?: boolean;
|
||||||
logLevel?: 'error' | 'warn' | 'info';
|
logLevel?: 'error' | 'warn' | 'debug';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -180,7 +180,7 @@ export class ExportErrorHandler {
|
|||||||
case 'warn':
|
case 'warn':
|
||||||
console.warn(`${operation}:`, error);
|
console.warn(`${operation}:`, error);
|
||||||
break;
|
break;
|
||||||
case 'info':
|
case 'debug':
|
||||||
console.debug(`${operation}:`, error);
|
console.debug(`${operation}:`, error);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user