From c8495d5a897f04ee8e6dd752d088f5d765cabc27 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Sun, 19 Sep 2021 00:01:09 +0200 Subject: print stats to syslog --- src/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 041309b..83ac1d8 100644 --- a/src/main.c +++ b/src/main.c @@ -440,7 +440,8 @@ int main(int argc, char *argv[]) if (_cli.state == TIP_CLIENT_DONE) { gettimeofday(&tv_stop, NULL); timersub(&tv_stop, &tv_start, &tv); - printf("Done in %lu.%06lu seconds (%lu Mbytes/second). " + printf("OK.\n"); + syslog(LOG_INFO, "Done in %lu.%06lu seconds (%lu Mbytes/second). " "Direct from server: %u Redirected: %u\n", tv.tv_sec, tv.tv_usec, data_len / 1024000 / tv.tv_sec, -- cgit v1.2.3-18-g5258