Import log instead of using it off of window
This commit is contained in:
parent
8eb0dd3116
commit
65ddf0a9e8
155 changed files with 3654 additions and 3433 deletions
|
@ -7,6 +7,7 @@ import {
|
|||
reloadProfiles,
|
||||
toggleVerification,
|
||||
} from '../../shims/contactVerification';
|
||||
import * as log from '../../logging/log';
|
||||
|
||||
export type SafetyNumberContactType = {
|
||||
safetyNumber: string;
|
||||
|
@ -107,7 +108,7 @@ async function alterVerification(contact: ConversationType): Promise<void> {
|
|||
if (result.name === 'OutgoingIdentityKeyError') {
|
||||
throw result;
|
||||
} else {
|
||||
window.log.error(
|
||||
log.error(
|
||||
'failed to toggle verified:',
|
||||
result && result.stack ? result.stack : result
|
||||
);
|
||||
|
@ -120,7 +121,7 @@ async function alterVerification(contact: ConversationType): Promise<void> {
|
|||
throw keyError;
|
||||
} else {
|
||||
result.errors.forEach((error: Error) => {
|
||||
window.log.error(
|
||||
log.error(
|
||||
'failed to toggle verified:',
|
||||
error && error.stack ? error.stack : error
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue