mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-15 22:54:00 +00:00
Services: Allow lm to log single-character messages.
This commit is contained in:
parent
c2ee513d35
commit
188feba457
1 changed files with 3 additions and 7 deletions
|
@ -75,7 +75,8 @@ private:
|
||||||
addr += sizeof(MessageHeader);
|
addr += sizeof(MessageHeader);
|
||||||
|
|
||||||
if (!header.IsSingleMessage()) {
|
if (!header.IsSingleMessage()) {
|
||||||
UNIMPLEMENTED_MSG("Multi message logs are unimplemeneted");
|
LOG_WARNING(Service, "Multi message logs are unimplemeneted");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse out log metadata
|
// Parse out log metadata
|
||||||
|
@ -102,15 +103,10 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
// Empty log - nothing to do here
|
// Empty log - nothing to do here
|
||||||
if (message.size() <= 1) {
|
if (message.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove trailing new line
|
|
||||||
if (message[message.length() - 1] == '\n') {
|
|
||||||
message.erase(message.length() - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Format a nicely printable string out of the log metadata
|
// Format a nicely printable string out of the log metadata
|
||||||
std::string output;
|
std::string output;
|
||||||
if (filename.size()) {
|
if (filename.size()) {
|
||||||
|
|
Loading…
Reference in a new issue