Skip to content

Commit

Permalink
Allow the merge message to be silenced.
Browse files Browse the repository at this point in the history
From issue samtools#2185, setting the verbosity to 0 or 1 will now silence the
merge message using the hts_verbose level.  As the normal level is 3 this
will not cause a change in the usual behaviour.
  • Loading branch information
whitwham committed Feb 25, 2025
1 parent bb96e23 commit 87e29a3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bam_sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -3592,9 +3592,12 @@ int bam_sort_core_ext(SamOrder sam_order, char* sort_tag, int minimiser_kmer,
goto err;
}
} else { // then merge
fprintf(stderr,
if (hts_get_log_level() >= 2) { // 2 is between the WARNING (default) and ERROR levels
fprintf(stderr,
"[bam_sort_core] merging from %d files and %d in-memory blocks...\n",
n_files, num_in_mem);
}

// Paranoia check - all temporary files should have a name
for (i = 0; i < n_files; ++i) {
if (!fns[i]) {
Expand Down

0 comments on commit 87e29a3

Please sign in to comment.