From 0dbcf83a11707fca439a58f6d3207e5ca30d9665 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Tue, 25 Jul 2023 11:45:26 -0500 Subject: [PATCH] [Database] Fix console output in database:dump --dump-output-to-console --- common/database/database_dump_service.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/database/database_dump_service.cpp b/common/database/database_dump_service.cpp index 4d81ed663..8c0ad1c84 100644 --- a/common/database/database_dump_service.cpp +++ b/common/database/database_dump_service.cpp @@ -324,7 +324,9 @@ void DatabaseDumpService::DatabaseDump() } } - LogSys.LoadLogSettingsDefaults(); + if (!IsDumpOutputToConsole()) { + LogSys.LoadLogSettingsDefaults(); + } if (!pipe_file.empty()) { std::string file = fmt::format("{}.sql", GetDumpFileNameWithPath());