Skip to content

Commit

Permalink
log destroyed sender message with "warn" level
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimiry committed Mar 2, 2019
1 parent efb39a9 commit fbca62b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/ipc-main-api-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ export class IpcMainApiService<Api extends Model.ActionsRecord<Extract<keyof Api
].join();

if (logger) {
logger.error(message);
} else {
// tslint:disable-next-line no-console
(console.error || console.log)(message);
logger.warn(message);
}
},
},
Expand Down

0 comments on commit fbca62b

Please sign in to comment.