fix(core): Ensure error reporter does not promote info to error messages (#11245)

This commit is contained in:
Iván Ovejero 2024-10-14 13:26:13 +02:00 committed by GitHub
parent e8c87c488f
commit a7fc7fc229
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ export const error = (e: unknown, options?: ReportingOptions) => {
export const info = (msg: string, options?: ReportingOptions) => {
Logger.info(msg);
instance.report(msg, options);
instance.report(msg, { ...options, level: 'info' });
};
export const warn = (warning: Error | string, options?: ReportingOptions) =>