diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp index 7115821b6..6757fa813 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp @@ -174,8 +174,7 @@ void CowWriterV2::InitBatchWrites() { current_data_pos_ = next_data_pos_; } - std::string batch_write = batch_write_ ? "enabled" : "disabled"; - LOG_INFO << "Batch writes: " << batch_write; + LOG_INFO << "Batch writes: " << batch_write_ ? "enabled" : "disabled"; } void CowWriterV2::InitWorkers() {