mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
relay: remove double newlines in LWS log messages
This commit is contained in:
parent
9e018fa4a2
commit
1f58fe3cd6
1 changed files with 3 additions and 3 deletions
|
@ -214,9 +214,9 @@ static const lws_extension extensions[] = {
|
|||
static void logger(int level, const char *msg) {
|
||||
auto log = spdlog::get("lws");
|
||||
|
||||
int len = strlen(msg);
|
||||
if (strchr(msg, '\n'))
|
||||
len -= 1;
|
||||
char *nl = (char *) strchr(msg, '\n');
|
||||
if (nl)
|
||||
*nl = 0;
|
||||
|
||||
/* Decrease severity for some errors. */
|
||||
if (strstr(msg, "Unable to open") == msg)
|
||||
|
|
Loading…
Add table
Reference in a new issue