Skip to content

Commit

Permalink
chore: debug exe integration (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega authored Feb 13, 2024
1 parent 61883bc commit 18e5901
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consumer-server/src/logic/lod-generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export function createLodGeneratorComponent(): LodGeneratorComponent {
const commandToExecute = `${lodGeneratorProgram} "coords" "${basePointer}" "${outputPath}"`
const files: string[] = await new Promise((resolve, reject) => {
exec(commandToExecute, (error, _stdout, stderr) => {
const debugFiles = fs.readdirSync(outputPath)
console.log('debugFiles', debugFiles)

const generatedFiles = fs.readdirSync(`${outputPath}/${basePointer}`)
// if files exists return otherwise reject
if (generatedFiles.length > 0) {
Expand Down

0 comments on commit 18e5901

Please sign in to comment.