agent pool logging improvements
This commit is contained in:
@@ -89,14 +89,14 @@ static void *servlet(void *args) /* Serve the connection -- threadable */
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
log(VERBOSE, "Client msg: \"%s\"",
|
log(VERBOSE, "Agent [%s] msg: \"%s\"",
|
||||||
buf.chunk.data);
|
agent->ip, buf.chunk.data);
|
||||||
/* TODO: Insert msg handler here */
|
/* TODO: Insert msg handler here */
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (SSL_get_shutdown(agent->ssl)
|
if (SSL_get_shutdown(agent->ssl)
|
||||||
== SSL_RECEIVED_SHUTDOWN)
|
== SSL_RECEIVED_SHUTDOWN)
|
||||||
log(VERBOSE, "SSL_RECEIVED_SHUTDOWN from agent [%s]",
|
log(VERBOSE, "Agent [%s] has shutdown.",
|
||||||
agent->ip);
|
agent->ip);
|
||||||
else {
|
else {
|
||||||
log(VERBOSE, "Client didn't send data!");
|
log(VERBOSE, "Client didn't send data!");
|
||||||
@@ -107,7 +107,6 @@ static void *servlet(void *args) /* Serve the connection -- threadable */
|
|||||||
SSL_write(agent->ssl, &buf,
|
SSL_write(agent->ssl, &buf,
|
||||||
sizeof(struct msg_t));
|
sizeof(struct msg_t));
|
||||||
}
|
}
|
||||||
log(INFO, "Agent [%s] disconnected.", agent->ip);
|
|
||||||
} while (bytes);
|
} while (bytes);
|
||||||
}
|
}
|
||||||
SSL_free(agent->ssl); /* release SSL state */
|
SSL_free(agent->ssl); /* release SSL state */
|
||||||
|
|||||||
Reference in New Issue
Block a user