Skip to content

Commit

Permalink
Mail: Cleanup old files from attachment stage (for anonymous user)
Browse files Browse the repository at this point in the history
(cherry picked from commit fb37aef)
  • Loading branch information
mjansenDatabay committed Aug 9, 2024
1 parent 778b4bb commit 269324f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ function (SplFileInfo $file) use ($right_interval): bool {
$relative_path = 'mail/' . $file->getFilename();
if ($filesystem->has($relative_path)) {
$filesystem->delete($relative_path);
$this->logger->info('Deleting file from attachment stage: ' . $file->getPath());
$this->logger->info('Deleting file from attachment stage: ' . $file->getPathname());
}
} catch (Exception $e) {
$this->logger->error('Error deleting file from attachment stage: ' . $file->getPath());
$this->logger->error('Error deleting file from attachment stage: ' . $file->getPathname());
}
}
}
Expand Down

0 comments on commit 269324f

Please sign in to comment.