log LINKSTATUS table updates

pull/21/head
Tom Early 9 months ago
parent 91cb2d5ce1
commit 78248cab5f

@ -178,7 +178,7 @@ bool CQnetDB::UpdateLS(const char *address, const char from_mod, const char *to_
return false;
std::stringstream sql;
sql << "INSERT OR REPLACE INTO LINKSTATUS (ip_address, from_mod, to_callsign, to_mod, linked_time) VALUES ('" << address << "', '" << from_mod << "', '" << to_callsign << "', '" << to_mod << "', " << linked_time << ");";
printf("%s\n", sql.str().c_str()); // log these updates
char *eMsg;
if (SQLITE_OK != sqlite3_exec(db, sql.str().c_str(), NULL, 0, &eMsg))
{

@ -54,7 +54,7 @@
#include "QnetLink.h"
#include "Utilities.h"
#define LINK_VERSION "QnetLink-41203"
#define LINK_VERSION "QnetLink-50330"
CQnetLink::CQnetLink() : CBase()
{

Loading…
Cancel
Save

Powered by TurnKey Linux.