Skip to content
Snippets Groups Projects
Commit 188feba4 authored by Subv's avatar Subv
Browse files

Services: Allow lm to log single-character messages.

parent c2ee513d
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,8 @@ private: ...@@ -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: ...@@ -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()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment