mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 06:01:38 +00:00
Tweak logging code
This commit is contained in:
+9
-5
@@ -101,26 +101,30 @@ XS(XS_EQEmuIO_PRINT)
|
||||
|
||||
std::string log_string = str;
|
||||
|
||||
if (log_string.find("did not return a true") != std::string::npos)
|
||||
if (log_string.find("did not return a true") != std::string::npos) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (log_string.find("is experimental") != std::string::npos)
|
||||
if (log_string.find("is experimental") != std::string::npos) {
|
||||
return;
|
||||
}
|
||||
|
||||
int i;
|
||||
int pos = 0;
|
||||
int len = 0;
|
||||
|
||||
for (i = 0; *cur != '\0'; i++, cur++) {
|
||||
if (*cur == '\n') {
|
||||
LogQuests(str);
|
||||
len = 0;
|
||||
pos = i + 1;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
len++;
|
||||
}
|
||||
}
|
||||
if(len > 0) {
|
||||
LogQuests(str);
|
||||
if (!log_string.empty()) {
|
||||
LogQuests(log_string);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user