Log failure to delete session file.

Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
Jan Bartel 2020-11-13 12:46:15 +01:00
parent 8884575f85
commit 1245df26a4
1 changed files with 3 additions and 1 deletions

View File

@ -260,7 +260,9 @@ public class FileSessionDataStore extends AbstractSessionDataStore
//files with 0 expiry never expire
if (expiry > 0 && expiry <= time)
{
Files.deleteIfExists(p);
if (!Files.deleteIfExists(p))
LOG.warn("Failed to delete {}", p.getFileName());
if (LOG.isDebugEnabled())
LOG.debug("Sweep deleted {}", p.getFileName());
}