]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/store/postgresql/postgresql_store.h
Use "connected" subscription for detecting connection and disconnection.
[stg.git] / projects / stargazer / plugins / store / postgresql / postgresql_store.h
index edba035927bac2e9dbdb7c0cd340898bea46ddf5..a30d3852d97a95ae6ab0078f0c2f2b22ec5fd992 100644 (file)
@@ -36,6 +36,7 @@
 #include <map>
 
 #include "stg/store.h"
 #include <map>
 
 #include "stg/store.h"
+#include "stg/logger.h"
 
 // Minimal DB version is 5
 // Recommended DB version is 6 (support FreeMb logging on disconnects)
 
 // Minimal DB version is 5
 // Recommended DB version is 6 (support FreeMb logging on disconnects)
@@ -158,6 +159,8 @@ private:
     int retries;
 
     PGconn * connection;
     int retries;
 
     PGconn * connection;
+
+    PLUGIN_LOGGER logger;
 };
 
 extern const volatile time_t stgTime;
 };
 
 extern const volatile time_t stgTime;