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 messages

This commit is contained in:
Steffen Vogel 2018-11-02 14:59:22 +01:00
parent f004b4bf3f
commit 5370bb5a73
3 changed files with 4 additions and 3 deletions

View file

@ -42,8 +42,6 @@ WebSocket::WebSocket(Api *a, lws *w) :
sscanf(uri, "/v%d", (int *) &version);
/** @todo Check version */
logger->debug("Initiated API session: {}", getName());
}
WebSocket::~WebSocket()

View file

@ -235,7 +235,7 @@ static void path_destination_write(struct path_destination *pd, struct path *p)
sent = node_write(pd->node, smps, allocated, &release);
if (sent < 0)
error("Failed to sent %u samples to node %s", cnt, node_name(pd->node));
error("Failed to sent %u samples to node %s: reason=%d", cnt, node_name(pd->node), sent);
else if (sent < allocated)
warning("Partial write to node %s: written=%d, expected=%d", node_name(pd->node), sent, allocated);

View file

@ -160,6 +160,8 @@ void Web::worker()
{
lws *wsi;
logger->info("Starting worker");
while (running) {
lws_service(context, 100);
@ -240,6 +242,7 @@ void Web::start()
};
logger->info("Starting sub-system: htdocs={}", htdocs.c_str());
/* update web root of mount point */
mounts[1].origin = htdocs.c_str();