diff --git a/src/encodeImage.ts b/src/encodeImage.ts index 1d13f42..b983eca 100644 --- a/src/encodeImage.ts +++ b/src/encodeImage.ts @@ -46,8 +46,6 @@ export function encodeImage( } } - console.log(options.options); - // Save the image to the destination directory if (options.options?.maxSize) { image = image.resize({ diff --git a/src/parseArgs.ts b/src/parseArgs.ts index a0f8e2d..46f506a 100644 --- a/src/parseArgs.ts +++ b/src/parseArgs.ts @@ -2,7 +2,7 @@ import { defaultConfigFile, extModes } from "./constants.js"; import yargs, { Argv } from "yargs"; import { CliOptions, ExtMode, ResizeType, resizeType } from "./types.js"; import { hideBin } from "yargs/helpers"; -import { generateDefaultConfigFile } from "./utils.js"; +import { generateDefaultConfigFile, logMessage } from "./utils.js"; /** * Get the command-line settings @@ -82,7 +82,7 @@ export function getCliOptions(rawArgs: Argv | undefined): CliOptions { if (Boolean(argv.defaultIni) && configFileName) { generateDefaultConfigFile(configFileName, argv as Record); - console.log(`Generated default config file: ${configFileName}`); + logMessage(`Generated default config file: ${configFileName}`, true); process.exit(0); } diff --git a/src/prompts.ts b/src/prompts.ts index 7dab6e7..2b29d03 100644 --- a/src/prompts.ts +++ b/src/prompts.ts @@ -64,8 +64,9 @@ export async function getPromptOptions( // If the compression settings are not specified, use the default compression settings if (Object.keys(options.compressionOptions).length === 0) { - console.log( + logMessage( "No compression settings found, so we will use the default compression settings", + true, ); options.compressionOptions = defaultCompressionOptions(); }