Tweak logging code

This commit is contained in:
Akkadius
2020-01-02 20:04:37 -06:00
parent 61d1c2d75c
commit c48e8d8823
+9 -5
View File
@@ -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);
}
}