sstables: correct the debugging message printed when removing temp dir

in 372a4d1b79, we introduced a change
which was for debugging the logging message. but the logging message
intended for printing the temp_dir not prints an `optional<int>`. this
is both confusing, and more importantly, it hurts the debuggability.

in this change, the related change is reverted.

Fixes scylladb/scylladb#20408

Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>
(cherry picked from commit d26bb9ae30)

Closes scylladb/scylladb#20434
This commit is contained in:
Kefu Chai
2024-09-03 13:11:56 +08:00
committed by Botond Dénes
parent a2458f07d7
commit 0eb66cbee5

View File

@@ -195,9 +195,7 @@ future<> filesystem_storage::remove_temp_dir() {
if (!_temp_dir) {
co_return;
}
std::optional<int> opt;
sstlog.debug("Removing temp_dir={}", opt);
//sstlog.debug("Removing temp_dir={}", _temp_dir);
sstlog.debug("Removing temp_dir={}", _temp_dir);
try {
co_await remove_file(_temp_dir->native());
} catch (...) {