use path.resolve to print full file

This commit is contained in:
BitterPanda 2026-01-30 14:26:26 +01:00
parent 5ab5fee130
commit adc384dd78

View file

@ -4,6 +4,7 @@ import { readFileSync, existsSync } from "node:fs";
import {randomUUID} from "node:crypto"; import {randomUUID} from "node:crypto";
import {createWriteStream} from "fs"; import {createWriteStream} from "fs";
import archiver from 'archiver'; import archiver from 'archiver';
import path from "node:path";
export async function printUltimateLogs() { export async function printUltimateLogs() {
const { proxyLogPath, ultimateLogPath, proxyErrLogPath, ultimateErrLogPath } = getPathsPerPlatform(); const { proxyLogPath, ultimateLogPath, proxyErrLogPath, ultimateErrLogPath } = getPathsPerPlatform();
@ -37,7 +38,7 @@ export async function collectLogs() {
const archive = archiver('zip', { zlib: { level: 9 } }); const archive = archiver('zip', { zlib: { level: 9 } });
output.on('close', () => { output.on('close', () => {
ui.writeInformation(`Logs collected and zipped as: ${zipFileName}`); ui.writeInformation(`Logs collected and zipped as: ${path.resolve(zipFileName)}`);
resolve(zipFileName); resolve(zipFileName);
}); });