2025-08-30 Fred Gleason <fredg@paravelsystems.com>

* Added a 'LogDropboxProcessing=' directive to the '[Debugging]'
	section of rd.conf(5).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-08-30 11:05:02 -04:00
parent b879187a03
commit 4f4472b824
9 changed files with 231 additions and 40 deletions

View File

@@ -2,7 +2,7 @@
//
// A container class for a Rivendell Base Configuration
//
// (C) Copyright 2002-2024 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2025 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -441,6 +441,12 @@ bool RDConfig::killPypadAfterJsonError() const
}
QList<int> RDConfig::logDropboxProcessingIds() const
{
return conf_log_dropbox_processing_ids;
}
int RDConfig::logSqlQueriesLevel() const
{
return conf_log_sql_queries_level;
@@ -704,6 +710,19 @@ bool RDConfig::load()
&conf_log_sql_queries);
conf_kill_pypad_after_json_error=
profile->boolValue("Debugging","KillPypadAfterJsonError");
QStringList f0=profile->stringValue("Debugging","LogDropboxProcessing").
split(",",QString::KeepEmptyParts);
for(int i=0;i<f0.size();i++) {
bool ok=false;
int id=f0.at(i).trimmed().toUInt(&ok);
if(ok&&(id>0)) {
conf_log_dropbox_processing_ids.push_back(id);
}
else {
fprintf(stderr,"WARNING: invalid dropbox ID \"%s\" specified in LogDropboxProcessing=\n",f0.at(i).toUtf8().constData());
}
}
conf_meter_base_port=
profile->intValue("Hacks","MeterPortBaseNumber",RD_DEFAULT_METER_SOCKET_BASE_UDP_PORT);
conf_meter_port_range=
@@ -847,6 +866,7 @@ void RDConfig::clear()
conf_log_sql_queries=false;
conf_log_sql_queries_level=LOG_DEBUG;
conf_kill_pypad_after_json_error=false;
conf_log_dropbox_processing_ids.clear();
conf_lock_rdairplay_memory=false;
conf_meter_base_port=RD_DEFAULT_METER_SOCKET_BASE_UDP_PORT;
conf_meter_port_range=RD_METER_SOCKET_PORT_RANGE;

View File

@@ -2,7 +2,7 @@
//
// A container class for a Rivendell Base Configuration
//
// (C) Copyright 2002-2024 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2025 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -113,6 +113,7 @@ class RDConfig
bool logSqlQueries() const;
int logSqlQueriesLevel() const;
bool killPypadAfterJsonError() const;
QList<int> logDropboxProcessingIds() const;
bool enableMixerLogging() const;
bool testOutputStreams() const;
uid_t uid() const;
@@ -195,6 +196,7 @@ class RDConfig
int conf_log_log_refresh_level;
bool conf_log_sql_queries;
bool conf_kill_pypad_after_json_error;
QList<int> conf_log_dropbox_processing_ids;
int conf_log_sql_queries_level;
bool conf_lock_rdairplay_memory;
QString conf_save_webget_files_directory;