mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 16:41:29 +00:00
[Hotfix] Make sure we have a proper split size before assuming we can split it
This commit is contained in:
parent
a16f21d6fe
commit
1f0b2a8991
@ -263,6 +263,7 @@ void EQEmuLogSys::ProcessConsoleMessage(
|
|||||||
|
|
||||||
if (log_category == Logs::LogCategory::MySQLQuery) {
|
if (log_category == Logs::LogCategory::MySQLQuery) {
|
||||||
auto s = Strings::Split(message, "--");
|
auto s = Strings::Split(message, "--");
|
||||||
|
if (s.size() > 1) {
|
||||||
std::string query = Strings::Trim(s[0]);
|
std::string query = Strings::Trim(s[0]);
|
||||||
std::string meta = Strings::Trim(s[1]);
|
std::string meta = Strings::Trim(s[1]);
|
||||||
|
|
||||||
@ -282,6 +283,7 @@ void EQEmuLogSys::ProcessConsoleMessage(
|
|||||||
<<
|
<<
|
||||||
rang::style::reset;
|
rang::style::reset;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (Strings::Contains(message, "[")) {
|
else if (Strings::Contains(message, "[")) {
|
||||||
for (auto &e: Strings::Split(message, " ")) {
|
for (auto &e: Strings::Split(message, " ")) {
|
||||||
if (Strings::Contains(e, "[") && Strings::Contains(e, "]")) {
|
if (Strings::Contains(e, "[") && Strings::Contains(e, "]")) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user