mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-21 15:54:39 +01:00
Add logging
This commit is contained in:
parent
dd1d713d19
commit
f0722843f6
@ -146,6 +146,7 @@ public class FileDownloaderCache {
|
|||||||
.orElseGet(() -> new FileCached(remoteURL.toString(), cacheFilePath.toString()));
|
.orElseGet(() -> new FileCached(remoteURL.toString(), cacheFilePath.toString()));
|
||||||
|
|
||||||
// If the file is change of the cache is disable run the HEAD request to check if the file is changed
|
// If the file is change of the cache is disable run the HEAD request to check if the file is changed
|
||||||
|
log.info("Get file cached is expire {}, exist {}, info {} ", fileCached.isExpire(), fileCached.exists(), fileCached);
|
||||||
if (fileCached.isExpire() || !fileCached.exists()) {
|
if (fileCached.isExpire() || !fileCached.exists()) {
|
||||||
// Update remote etag and cache control header
|
// Update remote etag and cache control header
|
||||||
final Optional<FileCached> fileCachedInfoUpdated =
|
final Optional<FileCached> fileCachedInfoUpdated =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user