Skip to content

Commit

Permalink
log msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
AF-1 committed Nov 9, 2024
1 parent 582646a commit ca5a260
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DynamicPlaylistCreator/ConfigManager/ParameterHandler.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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: <br>".$DBI::errstr);
}
}
Expand All @@ -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)) {
Expand Down
4 changes: 2 additions & 2 deletions DynamicPlaylistCreator/ConfigManager/WebPageMethods.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.": $!");
}
}

Expand All @@ -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.": $!");
}
}

Expand Down
2 changes: 1 addition & 1 deletion DynamicPlaylistCreator/install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<id>af82aa22-566e-5266-919e-9d90b5c0a5f2</id>
<name>PLUGIN_DYNAMICPLAYLISTCREATOR</name>
<module>Plugins::DynamicPlaylistCreator::Plugin</module>
<version>1.6.5</version>
<version>1.6.6</version>
<description>PLUGIN_DYNAMICPLAYLISTCREATOR_DESC</description>
<creator>AF</creator>
<optionsURL>plugins/DynamicPlaylistCreator/settings/settings.html</optionsURL>
Expand Down

0 comments on commit ca5a260

Please sign in to comment.