From 94a16ce68775e29dc4eb9f93eb17cf7b6e5f96df Mon Sep 17 00:00:00 2001 From: Volodymyr Yavdoshenko Date: Mon, 28 Apr 2025 16:25:58 +0300 Subject: [PATCH] fix: review comments were fixed --- src/server/dfly_main.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/server/dfly_main.cc b/src/server/dfly_main.cc index 5ef8ba1d2..8dbc97137 100644 --- a/src/server/dfly_main.cc +++ b/src/server/dfly_main.cc @@ -669,14 +669,15 @@ void PrintBasicUsageInfo() { for (const auto& dir : google::GetLoggingDirectories()) { const string_view maybe_slash = absl::EndsWith(dir, "/") ? "" : "/"; - output += std::string(dir) + std::string(maybe_slash) + "dragonfly.*\n"; + absl::StrAppend(&output, dir, maybe_slash, "dragonfly.*\n"); } - output += - "* For the available flags type dragonfly [--help | --helpfull]\n" - "* Documentation can be found at: https://www.dragonflydb.io/docs\n"; + absl::StrAppend(&output, + "* For the available flags type dragonfly [--help | --helpfull]\n" + "* Documentation can be found at: https://www.dragonflydb.io/docs\n"); std::cout << output; + std::cout.flush(); } void ParseFlagsFromEnv() {