Add a Log table to log queries for debugging and security logging. No JSON API support for querying the log yet, but will probably come via /network/###/member/###/log/... or something.

This commit is contained in:
Adam Ierymenko 2015-07-22 14:01:49 -07:00
parent 8ca885d27c
commit e2a2993b18
4 changed files with 54 additions and 3 deletions

View file

@ -97,6 +97,7 @@ private:
std::string _dbPath;
std::string _instanceId;
sqlite3 *_db;
sqlite3_stmt *_sGetNetworkById;
@ -141,6 +142,8 @@ private:
sqlite3_stmt *_sIncrementMemberRevisionCounter;
sqlite3_stmt *_sGetConfig;
sqlite3_stmt *_sSetConfig;
sqlite3_stmt *_sPutLog;
sqlite3_stmt *_sGetMemberLog;
Mutex _lock;
};