2021-08-03 Fred Gleason <fredg@paravelsystems.com>

* Added an error message to syslog if the 'Load Log' ['LL'] RML
	fails to find the specified log.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-08-03 15:46:45 -04:00
parent d583df36bf
commit 314bbb096d
2 changed files with 5 additions and 0 deletions

View File

@@ -22144,3 +22144,6 @@
or editing.
2021-08-03 Fred Gleason <fredg@paravelsystems.com>
* Updated I18N translation data.
2021-08-03 Fred Gleason <fredg@paravelsystems.com>
* Added an error message to syslog if the 'Load Log' ['LL'] RML
fails to find the specified log.

View File

@@ -119,6 +119,8 @@ void MainWidget::RunLocalMacros(RDMacro *rml)
else { // Load Log
logname=rml->arg(1);
if(!RDLog::exists(logname)) {
rda->syslog(LOG_WARNING,"unable to load log \"%s\", no such log",
logname.toUtf8().constData());
if(rml->echoRequested()) {
rml->acknowledge(false);
rda->ripc()->sendRml(rml);