Improvements

This commit is contained in:
Valentino Orlandi 2022-07-21 21:39:02 +02:00
parent a21dac101e
commit f0fd0bfb4a
Signed by: elB4RTO
GPG key ID: 1719E976DB2D4E71
3 changed files with 2 additions and 6 deletions

View file

@ -8,7 +8,7 @@
#include <filesystem>
#include <thread>
#include <iostream>
#include <iostream> // !!! REMOVE !!!
Craplog::Craplog()

View file

@ -108,7 +108,7 @@ public:
//getBlacklistedSize( const int log_type );
private:
// quantoty of informational dialogs to display
// quantity of informational dialogs to display
int dialog_level = 2; // 0: essential, 1: usefull, 2: explanatory
// databases paths

View file

@ -215,14 +215,10 @@ bool StoreOps::storeData( QSqlDatabase& db, Craplog& craplog, const std::vector<
if ( log_type == LogOps::LogType::Access ) {
query_stmt = "INSERT INTO "+table+" (warning, year, month, day, hour, minute, second, protocol, method, request, query, response, time_taken, bytes_sent, bytes_received, client, user_agent, cookie, referrer) "\
"VALUES (";
/*query_stmt = "INSERT INTO "+table+" (warning, year, month, day, hour, minute, second, protocol, method, request, query, response, time_taken, bytes_sent, bytes_received, client, user_agent, cookie, referrer) "\
"VALUES (?99, ?1, ?2, ?3, ?4, ?5, ?6, ?10, ?11, ?12, ?13, ?14, ?15, ?16, ?17, ?18, ?20, ?21, ?22);";*/
} else {
query_stmt = "INSERT INTO "+table+" (warning, year, month, day, hour, minute, second, level, message, source_file, client, port) "\
"VALUES (";
/*query_stmt = "INSERT INTO "+table+" (warning, year, month, day, hour, minute, second, level, message, source_file, client, port) "\
"VALUES (?99, ?1, ?2, ?3, ?4, ?5, ?6, ?31, ?32, ?33, ?20, ?30);";*/
}