commit | 90d4f89e8bbe2fd5c4719d4d62b099bfe0ce9fc9 | [log] [tgz] |
---|---|---|
author | Daniel Zheng <zhengdaniel@google.com> | Mon Aug 14 15:07:15 2023 -0700 |
committer | Daniel Zheng <zhengdaniel@google.com> | Mon Aug 14 15:16:36 2023 -0700 |
tree | b651a9f67eed403f2d5e944651350657f92e5460 | |
parent | 87d6c8a1d51f7a7f15b7e5f16cb42063506ba514 [diff] |
Removing extra string creation for log Removin unneccessary string from being created in logging Test: m libsnapshot Change-Id: I123b6a10f349dfb0c275e630b5f02d1cec8c2687
diff --git a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp index 6d04c6a..1dd6373 100644 --- a/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp +++ b/fs_mgr/libsnapshot/libsnapshot_cow/writer_v2.cpp
@@ -174,8 +174,7 @@ 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() {