mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
assign electron-log to updater
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
import { Logger } from 'electron-updater';
|
||||
|
||||
import { LogService } from 'jslib/abstractions/log.service';
|
||||
|
||||
export class UpdaterLogger implements Logger {
|
||||
constructor(private logService: LogService) { }
|
||||
|
||||
debug(message: string): void {
|
||||
this.logService.debug(message);
|
||||
}
|
||||
|
||||
info(message?: any): void {
|
||||
if (message == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logService.info(message);
|
||||
}
|
||||
|
||||
warn(message?: any): void {
|
||||
if (message == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logService.warning(message);
|
||||
}
|
||||
|
||||
error(message?: any): void {
|
||||
if (message == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.logService.error(message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user