Improvements
This commit is contained in:
parent
a21dac101e
commit
f0fd0bfb4a
3 changed files with 2 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <filesystem>
|
||||
#include <thread>
|
||||
|
||||
#include <iostream>
|
||||
#include <iostream> // !!! REMOVE !!!
|
||||
|
||||
|
||||
Craplog::Craplog()
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);";*/
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue