Log what is our conf

This commit is contained in:
Quentin 2019-09-18 11:22:10 +02:00
parent 79436ea61d
commit 9181c2946c

View file

@ -330,6 +330,8 @@ int main(int argc, char** argv) {
if (mctx.size < header_size) mctx.size = header_size;
if (mctx.transport == NULL) mctx.transport = "udp";
if (mctx.host == NULL || mctx.port == NULL) goto usage;
printf("[measlat_conf] host=%s, port=%s, transport=%s, count=%d, size=%d, interval=%d\n",
mctx.host, mctx.port, mctx.transport, mctx.count, mctx.size, mctx.interval);
// 3. Bind events
register_categories(&evts, &mctx);