From ca5a2608c1f769508ba2e701fbdaf151d2277a66 Mon Sep 17 00:00:00 2001 From: AF-1 <> Date: Sat, 9 Nov 2024 13:39:32 +0100 Subject: [PATCH] log msgs --- DynamicPlaylistCreator/ConfigManager/ParameterHandler.pm | 4 ++-- DynamicPlaylistCreator/ConfigManager/WebPageMethods.pm | 4 ++-- DynamicPlaylistCreator/install.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DynamicPlaylistCreator/ConfigManager/ParameterHandler.pm b/DynamicPlaylistCreator/ConfigManager/ParameterHandler.pm index 1e16772..e4055eb 100644 --- a/DynamicPlaylistCreator/ConfigManager/ParameterHandler.pm +++ b/DynamicPlaylistCreator/ConfigManager/ParameterHandler.pm @@ -465,7 +465,7 @@ sub getSQLTemplateData { $sth->finish(); }; if ($@) { - warn "Database error: $DBI::errstr"; + $log->warn("Database error: $DBI::errstr"); $self->criticalErrorCallback->("Running: $sql got error:
".$DBI::errstr); } } @@ -484,7 +484,7 @@ sub getFunctionTemplateData { no strict 'refs'; my $items = eval { &{$object.'::'.$function}() }; if ($@) { - warn "Function call error: $@"; + $log->warn("Function call error: $@"); } use strict 'refs'; if (defined($items)) { diff --git a/DynamicPlaylistCreator/ConfigManager/WebPageMethods.pm b/DynamicPlaylistCreator/ConfigManager/WebPageMethods.pm index dba5985..434827b 100644 --- a/DynamicPlaylistCreator/ConfigManager/WebPageMethods.pm +++ b/DynamicPlaylistCreator/ConfigManager/WebPageMethods.pm @@ -282,7 +282,7 @@ sub webDeleteItem { if (defined($dir) && -d $dir && $xmlFile && -e $xmlUrl) { unlink($xmlUrl) or do { - warn "Unable to delete file: ".$xmlUrl.": $!"; + $log->warn("Unable to delete file: ".$xmlUrl.": $!"); } } @@ -292,7 +292,7 @@ sub webDeleteItem { if (defined($dir) && -d $dir && $sqlFile && -e $sqlFileUrl) { unlink($sqlFileUrl) or do { - warn "Unable to delete dpl sql file: ".$sqlFileUrl.": $!"; + $log->warn("Unable to delete dpl sql file: ".$sqlFileUrl.": $!"); } } diff --git a/DynamicPlaylistCreator/install.xml b/DynamicPlaylistCreator/install.xml index 79c7bd7..c5cfbb5 100644 --- a/DynamicPlaylistCreator/install.xml +++ b/DynamicPlaylistCreator/install.xml @@ -3,7 +3,7 @@ af82aa22-566e-5266-919e-9d90b5c0a5f2 PLUGIN_DYNAMICPLAYLISTCREATOR Plugins::DynamicPlaylistCreator::Plugin - 1.6.5 + 1.6.6 PLUGIN_DYNAMICPLAYLISTCREATOR_DESC AF plugins/DynamicPlaylistCreator/settings/settings.html