Skip to content

Commit

Permalink
chore: logging updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Jan 16, 2024
1 parent e5c90ef commit 7b850bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions helpers/bigwig-merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function bigWigMerge(files, output, chrom, start, end) {
const release = await semaphore.acquire();

try {
console.debug("bigWigMerge called:", command);
result = await exec(command);
} catch(err) {
result = Promise.reject(err);
Expand Down
2 changes: 0 additions & 2 deletions models/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ function getTracks(samples, peak) {
.map(clone);

tracks.forEach(track => {
console.debug("track path before", track.path);
track.path = getLocalPath(track);
console.debug("track path after", track.path);
const sample = samplesByRealName[track.donor];
Object.assign(track, sample);
});
Expand Down
2 changes: 2 additions & 0 deletions models/tracks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ function mergeFiles(paths, { chrom, start, end }) {
const url = `${NODE_BASE_URL}/api/merged/${mergeName}`;
const mergePath = path.join(MERGED_TRACKS_DIR, mergeName);

console.info(`mergeFiles called with ${paths.length} files; start=${start}; end=${end}`);

return new Promise((resolve) => {
fs.access(mergePath, fs.constants.F_OK, (err) => {
resolve(err ? true : bigWigMerge(paths, mergePath, chrom, start, end));
Expand Down

0 comments on commit 7b850bc

Please sign in to comment.