mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2022-12-07 Fred Gleason <fredg@paravelsystems.com>
* Extended the 'LogSearchStrings=' directive in rd.conf(5) to include searches for logs. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -193,12 +193,14 @@ void RDLogFilter::changeUser()
|
||||
|
||||
void RDLogFilter::filterChangedData(const QString &str)
|
||||
{
|
||||
LogSearchString(filter_filter_edit->text());
|
||||
emit filterChanged(whereSql());
|
||||
}
|
||||
|
||||
|
||||
void RDLogFilter::filterChangedData()
|
||||
{
|
||||
LogSearchString(filter_filter_edit->text());
|
||||
emit filterChanged(whereSql());
|
||||
}
|
||||
|
||||
@@ -212,6 +214,7 @@ void RDLogFilter::filterClearedData()
|
||||
|
||||
void RDLogFilter::serviceChangedData(int n)
|
||||
{
|
||||
LogSearchString(filter_filter_edit->text());
|
||||
emit filterChanged(whereSql());
|
||||
}
|
||||
|
||||
@@ -229,3 +232,14 @@ void RDLogFilter::resizeEvent(QResizeEvent *e)
|
||||
filter_recent_check->setGeometry(275,27,15,15);
|
||||
filter_recent_label->setGeometry(295,25,200,20);
|
||||
}
|
||||
|
||||
|
||||
void RDLogFilter::LogSearchString(const QString &str)
|
||||
{
|
||||
if(rda->config()->logSearchStrings()) {
|
||||
rda->syslog(rda->config()->logSearchStringsLevel(),
|
||||
"searching log list by string: \"%s\" [%s]",
|
||||
str.toUtf8().constData(),
|
||||
RDConfig::hexify(str).toUtf8().constData());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user