mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 15:02:27 +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:
parent
cd5637dec3
commit
a13d27e4ce
@ -23764,3 +23764,6 @@
|
||||
2022-12-07 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added a 'LogSearchStrings=' directive to the '[Debugging]'
|
||||
section of rd.conf(5).
|
||||
2022-12-07 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Extended the 'LogSearchStrings=' directive in rd.conf(5) to
|
||||
include searches for logs.
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -59,6 +59,7 @@ class RDLogFilter : public QWidget
|
||||
void resizeEvent(QResizeEvent *e);
|
||||
|
||||
private:
|
||||
void LogSearchString(const QString &str);
|
||||
FilterMode filter_filter_mode;
|
||||
QLabel *filter_service_label;
|
||||
QComboBox *filter_service_box;
|
||||
|
Loading…
x
Reference in New Issue
Block a user