Skip to content

πŸ†™ Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.

Fix logs

Nayam Amarshed108a75612d9
diff --git a/electron/commands/image-upscayl.ts b/electron/commands/image-upscayl.ts
index dbcbf4a..a9fb113 100644
--- a/electron/commands/image-upscayl.ts
+++ b/electron/commands/image-upscayl.ts
@@ -92,19 +92,22 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
)
);
} else {
- logit("βœ… Upscayl Variables: ", {
- model,
- gpuId,
- saveImageAs,
- inputDir,
- outputDir,
- fullfileName,
- fileName,
- initialScale: initialScale,
- desiredScale,
- outFile,
- compression,
- });
+ logit(
+ "βœ… Upscayl Variables: ",
+ JSON.stringify({
+ model,
+ gpuId,
+ saveImageAs,
+ inputDir,
+ outputDir,
+ fullfileName,
+ fileName,
+ initialScale: initialScale,
+ desiredScale,
+ outFile,
+ compression,
+ })
+ );
const upscayl = spawnUpscayl(
"realesrgan",
getSingleImageArguments(
diff --git a/electron/utils/config-variables.ts b/electron/utils/config-variables.ts
index ff352d9..192624c 100644
--- a/electron/utils/config-variables.ts
+++ b/electron/utils/config-variables.ts
@@ -62,7 +62,13 @@ export function setChildProcesses(value: {
kill: () => boolean;
}): void {
childProcesses.push(value);
- logit("πŸ‘Ά Updating Child Processes: ", childProcesses);
+ logit(
+ "πŸ‘Ά Updating Child Processes: ",
+ JSON.stringify({
+ binary: childProcesses[0].process.spawnfile,
+ args: childProcesses[0].process.spawnargs,
+ })
+ );
}
export function setNoImageProcessing(value: boolean): void {