Skip to content

Commit

Permalink
add more log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
AF-1 committed Dec 3, 2024
1 parent 20e14f9 commit 8abd4fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions AlternativePlayCount/Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1017,8 +1017,7 @@ sub doneScanning {
$opened = 0;
close(BACKUPFILE);

my $ended = time() - $restorestarted;
main::INFOLOG && $log->is_info && $log->info('Restore completed after '.$ended.' seconds. Restored '.$restoreCount.($restoreCount == 1 ? ' track.' : ' tracks.').' Restore count listed here may be slightly higher (e.g. +1) than the correct number stated in the backup file.');
main::INFOLOG && $log->is_info && $log->info('Restore completed after '.(time() - $restorestarted).' seconds. Restored '.$restoreCount.($restoreCount == 1 ? ' track.' : ' tracks.').' Restore count listed here may be slightly higher (e.g. +1) than the correct number stated in the backup file.');
sleep(1.5); # if task is removed too soon from scheduler => undef val as sub ref error
Slim::Utils::Scheduler::remove_task(\&restoreScanFunction);
$prefs->set('isTSlegacyBackupFile', 0);
Expand Down

0 comments on commit 8abd4fe

Please sign in to comment.