Skip to content

Commit 4eb2012

Browse files
authored
fix: add missing slash on startup for certain log_dir paths (#1500)
1 parent 3904a4f commit 4eb2012

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server/dfly_main.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,8 @@ void sigill_hdlr(int signo) {
622622
void PrintBasicUsageInfo() {
623623
std::cout << "* Logs will be written to the first available of the following paths:\n";
624624
for (const auto& dir : google::GetLoggingDirectories()) {
625-
std::cout << dir << "dragonfly.*\n";
625+
const string_view maybe_slash = absl::EndsWith(dir, "/") ? "" : "/";
626+
std::cout << dir << maybe_slash << "dragonfly.*\n";
626627
}
627628
std::cout << "* For the available flags type dragonfly [--help | --helpfull]\n";
628629
std::cout << "* Documentation can be found at: https://www.dragonflydb.io/docs";

0 commit comments

Comments
 (0)