Skip to content

Commit

Permalink
chore: add logs
Browse files Browse the repository at this point in the history
#10000
  • Loading branch information
pociej committed May 9, 2024
1 parent bacaa88 commit 85e10e0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions backend/src/services/file/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ export const fileService = (
?.beginBatch()
.uploadFile(`${DIR_NAME}${fileName}`, `/golem/workdir/${fileName}`)
.run(`/golem/scripts/clamscan-json.sh /golem/workdir/${fileName}`)
.run("ls /golem/output/")
.run(`cat /golem/output/temp/metadata.json`)
.end();

.end();
debugLog("file", "result", results ? results[2].stdout : "no results")
//@ts-ignore
return JSON.parse((results[3].stdout || "null") as string);
return JSON.parse((results[2].stdout || "null") as string);
} catch(err) {
debugLog("file","Error scannin file", err);
return null;
Expand Down

0 comments on commit 85e10e0

Please sign in to comment.