aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-01-10 19:12:00 +0100
committerShauren <shauren.trinity@gmail.com>2023-01-10 19:15:10 +0100
commiteab14dc66ad939372f45f934d0921129b931cf2a (patch)
treec44f3d118074fc69bfa8dda967a657b612e117c6 /src
parent0b948b758f7438bae9abfbe56b39bee717c32d3b (diff)
Core/Logging: Fixed remaining uses of STRING_VIEW_FMT in log statements
Diffstat (limited to 'src')
-rw-r--r--src/common/Utilities/StartProcess.cpp4
-rw-r--r--src/server/game/Chat/ChatCommands/ChatCommand.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/src/common/Utilities/StartProcess.cpp b/src/common/Utilities/StartProcess.cpp
index fc0dd54557f..dc4fc4e7646 100644
--- a/src/common/Utilities/StartProcess.cpp
+++ b/src/common/Utilities/StartProcess.cpp
@@ -129,12 +129,12 @@ static int CreateChildProcess(T waiter, std::string const& executable,
auto outInfo = MakeTCLogSink([&](std::string_view msg)
{
- TC_LOG_INFO(logger, STRING_VIEW_FMT, STRING_VIEW_FMT_ARG(msg));
+ TC_LOG_INFO(logger, "{}", msg);
});
auto outError = MakeTCLogSink([&](std::string_view msg)
{
- TC_LOG_ERROR(logger, STRING_VIEW_FMT, STRING_VIEW_FMT_ARG(msg));
+ TC_LOG_ERROR(logger, "{}", msg);
});
copy(outStream, outInfo);
diff --git a/src/server/game/Chat/ChatCommands/ChatCommand.cpp b/src/server/game/Chat/ChatCommands/ChatCommand.cpp
index c74386f0cba..14fecb6ee33 100644
--- a/src/server/game/Chat/ChatCommands/ChatCommand.cpp
+++ b/src/server/game/Chat/ChatCommands/ChatCommand.cpp
@@ -97,7 +97,7 @@ static ChatSubCommandMap COMMAND_MAP;
}
else
{
- TC_LOG_ERROR("sql.sql", "Table `command` contains data for non-existant command '" STRING_VIEW_FMT "'. Skipped.", STRING_VIEW_FMT_ARG(name));
+ TC_LOG_ERROR("sql.sql", "Table `command` contains data for non-existant command '{}'. Skipped.", name);
cmd = nullptr;
break;
}
@@ -107,12 +107,12 @@ static ChatSubCommandMap COMMAND_MAP;
continue;
if (std::holds_alternative<std::string>(cmd->_help))
- TC_LOG_ERROR("sql.sql", "Table `command` contains duplicate data for command '" STRING_VIEW_FMT "'. Skipped.", STRING_VIEW_FMT_ARG(name));
+ TC_LOG_ERROR("sql.sql", "Table `command` contains duplicate data for command '{}'. Skipped.", name);
if (std::holds_alternative<std::monostate>(cmd->_help))
cmd->_help.emplace<std::string>(help);
else
- TC_LOG_ERROR("sql.sql", "Table `command` contains legacy help text for command '" STRING_VIEW_FMT "', which uses `trinity_string`. Skipped.", STRING_VIEW_FMT_ARG(name));
+ TC_LOG_ERROR("sql.sql", "Table `command` contains legacy help text for command '{}', which uses `trinity_string`. Skipped.", name);
} while (result->NextRow());
}
@@ -123,7 +123,7 @@ static ChatSubCommandMap COMMAND_MAP;
void Trinity::Impl::ChatCommands::ChatCommandNode::ResolveNames(std::string name)
{
if (_invoker && std::holds_alternative<std::monostate>(_help))
- TC_LOG_WARN("sql.sql", "Table `command` is missing help text for command '" STRING_VIEW_FMT "'.", STRING_VIEW_FMT_ARG(name));
+ TC_LOG_WARN("sql.sql", "Table `command` is missing help text for command '{}'.", name);
_name = name;
for (auto& [subToken, cmd] : _subCommands)