mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 00:21:21 +02:00
2022-12-16 Fred Gleason <fredg@paravelsystems.com>
* Added a 'LogSqlQueries=' directive to the '[Debugging]' section of rd.conf(5). Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -65,6 +65,10 @@ RDSqlQuery::RDSqlQuery (const QString &query,bool reconnect):
|
||||
}
|
||||
|
||||
if(isActive()) {
|
||||
if((rda!=NULL)&&(rda->config()->logSqlQueries())) {
|
||||
rda->syslog(rda->config()->logSqlQueriesLevel(),
|
||||
"SQL: %s",query.toUtf8().constData());
|
||||
}
|
||||
//printf("QUERY: %s\n",(const char *)query.toUtf8());
|
||||
QStringList f0=query.split(" ");
|
||||
if(f0[0].toLower()=="select") {
|
||||
|
Reference in New Issue
Block a user