1
0
Fork 0
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:
Steffen Vogel 2019-01-12 19:06:41 +01:00
parent 9e018fa4a2
commit 1f58fe3cd6

View file

@ -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)