Upgrade electron-log to v5.1.1 (#2973)

This commit is contained in:
Devin Binnie
2024-03-11 19:55:34 -04:00
committed by GitHub
parent 16f24fede4
commit e5efa727fe
19 changed files with 48 additions and 45 deletions

View File

@@ -4,7 +4,7 @@
import path from 'path';
import {app} from 'electron';
import type {ElectronLog} from 'electron-log';
import type {MainLogger} from 'electron-log';
import type {DiagnosticStepResponse} from 'types/diagnostics';
@@ -16,7 +16,7 @@ import DiagnosticsStep from '../DiagnosticStep';
const stepName = 'Step-0';
const stepDescriptiveName = 'logConfig';
const run = async (logger: ElectronLog): Promise<DiagnosticStepResponse> => {
const run = async (logger: MainLogger): Promise<DiagnosticStepResponse> => {
try {
const filename = `diagnostics_${dateTimeInFilename()}.txt`;
const pathToFile = path.join(app.getPath('userData'), `diagnostics/${filename}`);