summaryrefslogtreecommitdiff
path: root/src/webstat_logger_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webstat_logger_main.cpp')
-rw-r--r--src/webstat_logger_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webstat_logger_main.cpp b/src/webstat_logger_main.cpp
index 0db940a..1a2c8cb 100644
--- a/src/webstat_logger_main.cpp
+++ b/src/webstat_logger_main.cpp
@@ -46,7 +46,7 @@ main(int argc, char ** argv)
}
po::notify(optVars);
- auto dbconn = std::make_shared<PQ::Connection>("dbname=webstat user=webstat");
- WebStat::Ingestor {getHostname(false), dbconn}.ingestLog(stdin);
+ auto pool = std::make_shared<DB::ConnectionPool>(1, 1, "postgresql", "dbname=webstat user=webstat");
+ WebStat::Ingestor {getHostname(false), pool}.ingestLog(stdin);
return EXIT_SUCCESS;
}