Skip to content

Commit

Permalink
Log final dir and if parallel writing is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
zmeyc committed Mar 8, 2021
1 parent c43a4af commit e1208a5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plotter_disk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,14 @@ class DiskPlotter {
throw InvalidValueException("Stripe size too large");
}

const char is_parallel_writing_enabled = !DiskUtil::ShouldLock(final_dirname);

std::cout << std::endl
<< "Starting plotting progress into temporary dirs: " << tmp_dirname << " and "
<< tmp2_dirname << std::endl;
std::cout << "Final dir: " << final_dirname << " (parallel writing: "
<< (is_parallel_writing_enabled ? "enabled" : "disabled")
<< ")" << std::endl;
std::cout << "ID: " << Util::HexStr(id, id_len) << std::endl;
std::cout << "Plot size is: " << static_cast<int>(k) << std::endl;
std::cout << "Buffer size is: " << buf_megabytes << "MiB" << std::endl;
Expand Down

0 comments on commit e1208a5

Please sign in to comment.