[READ-ONLY] Mirror of https://github.com/FoxxMD/komodo-import. Import existing compose stacks into Komodo foxxmd.github.io/komodo-import
compose docker import komodo toml
0

Configure Feed

Select the types of activity you want to include in your feed.

refactor: Reduce log noise by demoting some logging from info to verbose level

FoxxMD (Sep 3, 2025, 5:28 PM UTC) f9018f42 f3bac306

+15 -15
+1 -1
src/builders/stack/composeUtils.ts
··· 33 33 } 34 34 } 35 35 const s = Object.values(stacks); 36 - logger.verbose(`Found ${s.length} candidate Compose projects`); 36 + logger.debug(`Found ${s.length} candidate Compose projects`); 37 37 return s; 38 38 }
+1 -1
src/builders/stack/filesOnServer.ts
··· 31 31 const folderName = `${pathInfo.name}${pathInfo.ext !== '' ? pathInfo.ext : ''}`; 32 32 33 33 const logger = childLogger(options.logger, [folderName, 'Files On Server']); 34 - logger.info(`Found Stack '${folderName}' at dir ${path}`); 34 + logger.verbose(`Found Stack '${folderName}' at dir ${path}`); 35 35 36 36 let stack: TomlStack; 37 37 let logJson = isDebugMode();
+4 -4
src/builders/stack/gitStack.ts
··· 43 43 let gitData: GitRepoData; 44 44 try { 45 45 gitData = await detectGitRepo(path); 46 - logger.info(`Current directory is a Git repo: Branch ${gitData[0].branch} | Remote ${gitData[1].remote} | URL ${gitData[1].url}`); 46 + logger.verbose(`Current directory is a Git repo: Branch ${gitData[0].branch} | Remote ${gitData[1].remote} | URL ${gitData[1].url}`); 47 47 } catch (e) { 48 48 if (e instanceof SimpleError) { 49 49 nonGitReasons.push(`Current dir is not a git repo => ${e.message}`); ··· 58 58 const parentGitDir = dirname(parentGitPath) 59 59 try { 60 60 gitData = await detectGitRepo(parentGitDir); 61 - logger.info(`Detected parent path ${parentGitDir} is a Git repo: Branch ${gitData[0].branch} | Remote ${gitData[1].remote} | URL ${gitData[1].url}`); 62 - logger.info('Will treat current directory as the run directory for this repo'); 61 + logger.verbose(`Detected parent path ${parentGitDir} is a Git repo: Branch ${gitData[0].branch} | Remote ${gitData[1].remote} | URL ${gitData[1].url}`); 62 + logger.debug('Will treat current directory as the run directory for this repo'); 63 63 repoRunDir = removeRootPathSeparator(path.replace(parentGitDir, '')); 64 64 gitStackConfig.run_directory = repoRunDir; 65 65 } catch (e) { ··· 95 95 repo 96 96 }; 97 97 } else { 98 - logger.verbose(`Using linked repo ${repo.name}}`); 98 + logger.debug(`Using linked repo ${repo.name}}`); 99 99 gitStackConfig. linked_repo = repo.name; 100 100 } 101 101
+2 -2
src/builders/stack/stackBuilder.ts
··· 95 95 Komodo Import Mount Path => ${convertedPath}`); 96 96 folderPaths.push(convertedPath); 97 97 } 98 - this.logger.verbose(`Got ${folderPaths.length} valid compose project directories`); 98 + this.logger.info(`Got ${folderPaths.length} valid compose project directories`); 99 99 } else { 100 100 this.logger.info(`Folder Glob: ${folderGlob}`); 101 101 this.logger.info(`Folder Ignore Glob: ${ignoreFolderGlob ?? 'N/A'}`); ··· 103 103 await this.parseComposeProjects(); 104 104 const dirs = await findFolders(this.dirData.scan, folderGlob, {ignore: ignoreFolderGlob, dot: allowGlobDot}) 105 105 folderPaths = dirs.map(x => joinPath(this.dirData.scan, x)); 106 - this.logger.verbose(`Got ${folderPaths.length} folders in ${this.dirData.scan}:\n${formatIntoColumns(dirs, 3)}`); 106 + this.logger.info(`Got ${folderPaths.length} folders in ${this.dirData.scan}:\n${formatIntoColumns(dirs, 3)}`); 107 107 } 108 108 109 109 let stacks: TomlStack[] = [];
+6 -6
src/builders/stack/stackUtils.ts
··· 19 19 const composeFiles = await findFilesRecurive(glob, path); 20 20 let sorted = [...composeFiles].reverse(); 21 21 if (composeFiles.length === 0) { 22 - logger.warn(`Did not find any files patterns matching compose glob`); 22 + logger.verbose(`Did not find any files patterns matching compose glob`); 23 23 } else { 24 24 sorted = sortComposePaths(composeFiles); 25 - logger.info(stripIndents`Found ${composeFiles.length} files matching compose glob: 25 + logger.verbose(stripIndents`Found ${composeFiles.length} files matching compose glob: 26 26 ${sorted.join('\n')}`); 27 27 28 28 // only take first file if using default ··· 34 34 } 35 35 36 36 if (file_paths.length === 1 && file_paths[0] === 'compose.yaml') { 37 - logger.info(`Using file: compose.yaml but not writing to file_paths since this is the Komodo default`); 37 + logger.debug(`Using file: compose.yaml but not writing to file_paths since this is the Komodo default`); 38 38 return undefined; 39 39 } else { 40 - logger.info(`Using file(s): ${file_paths.join('\n')}`); 40 + logger.verbose(`Using file(s): ${file_paths.join('\n')}`); 41 41 return file_paths; 42 42 } 43 43 } ··· 47 47 48 48 const envFiles = await findFilesRecurive(glob, path, { dot: true }); 49 49 if (envFiles.length > 0) { 50 - logger.info(stripIndents`Found ${envFiles.length} matching env files: 50 + logger.verbose(stripIndents`Found ${envFiles.length} matching env files: 51 51 ${envFiles.join('\n')}`); 52 52 return envFiles; 53 53 } ··· 82 82 } 83 83 else { 84 84 config.env_file_path = komodoEnvName 85 - logger.info(`Using ${komodoEnvName} for Komodo-written env file`); 85 + logger.verbose(`Using ${komodoEnvName} for Komodo-written env file`); 86 86 config.additional_env_files = pathPrefix === undefined ? envFiles : envFiles.map(x => join(pathPrefix, x)); 87 87 } 88 88 }
+1 -1
src/exporters/exportToApiSync.ts
··· 17 17 throw new Error('Komodo API is unavailable, cannot export to Sync'); 18 18 } 19 19 const syncName = isUndefinedOrEmptyString(process.env.SYNC_NAME) ? 'komodo-import' : process.env.SYNC_NAME; 20 - logger.info(`Using '${syncName}' as Sync Name`); 20 + logger.verbose(`Using '${syncName}' as Sync Name`); 21 21 22 22 let syncId: string; 23 23 let existingBehaviorVal = process.env.EXISTING_SYNC ?? 'append';