From 05c47ab65e73b16887b7c7a1eb31acf6d364ef41 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 20 Mar 2026 23:48:32 +0000 Subject: Add logging :-o Adds virtual log function, real implementation writes to syslog. Test implementation writes to BOOST_TEST_MESSAGE, perf implementation discards. Replaces existing prints to stderr and adds logs to all key points. --- test/perf-ingest.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test/perf-ingest.cpp') diff --git a/test/perf-ingest.cpp b/test/perf-ingest.cpp index c403349..cf0be0d 100644 --- a/test/perf-ingest.cpp +++ b/test/perf-ingest.cpp @@ -18,10 +18,19 @@ namespace { static const WebStat::MockDB mockdb; } + class PerfIngestor : public WebStat::Ingestor { + using Ingestor::Ingestor; + + void + log(int, const char *, ...) const override + { + } + }; + void doIngestFile(benchmark::State & state) { - WebStat::Ingestor ingestor {WebStat::getTestUtsName("perf-hostname"), + PerfIngestor ingestor {WebStat::getTestUtsName("perf-hostname"), std::make_shared("webstat"), { .userAgentAPI = {}, -- cgit v1.3