mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-26 03:18:17 +01:00
Import log instead of using it off of window
This commit is contained in:
@@ -5,6 +5,7 @@ import React, { ReactNode } from 'react';
|
||||
|
||||
import { LocalizerType } from '../../types/Util';
|
||||
import * as Errors from '../../types/errors';
|
||||
import * as log from '../../logging/log';
|
||||
|
||||
export type Props = {
|
||||
i18n: LocalizerType;
|
||||
@@ -27,7 +28,7 @@ export class ErrorBoundary extends React.PureComponent<Props, State> {
|
||||
}
|
||||
|
||||
public static getDerivedStateFromError(error: Error): State {
|
||||
window.log.error(
|
||||
log.error(
|
||||
'ErrorBoundary: captured rendering error',
|
||||
Errors.toLogFormat(error)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user