Log failure to delete session file.
Signed-off-by: Jan Bartel <janb@webtide.com>
This commit is contained in:
parent
8884575f85
commit
1245df26a4
|
@ -260,7 +260,9 @@ public class FileSessionDataStore extends AbstractSessionDataStore
|
||||||
//files with 0 expiry never expire
|
//files with 0 expiry never expire
|
||||||
if (expiry > 0 && expiry <= time)
|
if (expiry > 0 && expiry <= time)
|
||||||
{
|
{
|
||||||
Files.deleteIfExists(p);
|
if (!Files.deleteIfExists(p))
|
||||||
|
LOG.warn("Failed to delete {}", p.getFileName());
|
||||||
|
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
LOG.debug("Sweep deleted {}", p.getFileName());
|
LOG.debug("Sweep deleted {}", p.getFileName());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue