1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

improve logging

This commit is contained in:
Steffen Vogel 2019-01-12 19:05:32 +01:00
parent 8052b15377
commit 8347dc705f
3 changed files with 4 additions and 4 deletions

View file

@ -188,7 +188,7 @@ int websocket_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, voi
c->wsi = wsi;
c->state = WEBSOCKET_CONNECTION_STATE_ESTABLISHED;
debug(LOG_WEBSOCKET | 10, "Established WebSocket connection: %s", websocket_connection_name(c));
info("Established WebSocket connection: %s", websocket_connection_name(c));
if (reason == LWS_CALLBACK_CLIENT_ESTABLISHED)
c->mode = WEBSOCKET_MODE_CLIENT;

View file

@ -330,7 +330,7 @@ enum signal_type signal_type_detect(const char *val)
char *brk;
int len;
debug(LOG_IO | 5, "Attempt to detect type of: %s", val);
debug(LOG_IO | 5, "Attempt to detect type of value: %s", val);
brk = strchr(val, 'i');
if (brk)

View file

@ -99,12 +99,12 @@ public:
sessions[sid] = s;
console->info("Creating new session: {}", sid);
console->debug("Creating new session: {}", sid);
return s;
}
else {
console->info("Reusing existing session: ", sid);
console->debug("Found existing session: {}", sid);
return it->second;
}