cachedMessage[0] = account.getMessageCache().replaceSender(cachedMessage[0], recipientId);
} catch (IOException ioException) {
logger.warn("Failed to move cached message to recipient folder: {}",
- ioException.getMessage());
+ ioException.getMessage(),
+ ioException);
}
}
} else {
try {
account.getMessageCache().replaceSender(cachedMessage, recipientId);
} catch (IOException ioException) {
- logger.warn("Failed to move cached message to recipient folder: {}", ioException.getMessage());
+ logger.warn("Failed to move cached message to recipient folder: {}",
+ ioException.getMessage(),
+ ioException);
}
}
return null;
final var cacheFile = getMessageCacheFile(recipientId, file.getName());
Files.move(file.toPath(), cacheFile.toPath());
} catch (IOException e) {
- logger.warn("Failed to move cache file “{}”, ignoring: {}", file, e.getMessage());
+ logger.warn("Failed to move cache file “{}”, ignoring: {}", file, e.getMessage(), e);
}
}
}