Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tds/src/main/java/thredds/server/config/TdsInit.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998-2025 John Caron and University Corporation for Atmospheric Research/Unidata
* Copyright (c) 1998-2026 John Caron and University Corporation for Atmospheric Research/Unidata
* See LICENSE for license information.
*/

Expand Down Expand Up @@ -70,6 +70,7 @@
public class TdsInit implements ApplicationListener<ContextRefreshedEvent>, DisposableBean {
static private final Logger startupLog = org.slf4j.LoggerFactory.getLogger("serverStartup");
static private final Logger logCatalogInit = org.slf4j.LoggerFactory.getLogger("catalogInit");
private static Logger cacheLogger = org.slf4j.LoggerFactory.getLogger("cacheLogger");

@Autowired
private TdsContext tdsContext;
Expand Down Expand Up @@ -338,6 +339,8 @@ private void readThreddsConfig() {
c.add(Calendar.SECOND, scourSecs / 2); // starting in half the scour time
cdmDiskCacheTimer = new Timer("CdmDiskCache");
cdmDiskCacheTimer.scheduleAtFixedRate(new CacheScourTask(maxSize), c.getTime(), (long) 1000 * scourSecs);
cacheLogger.info("Started a DiskCache scour task on {} every {} minutes until size below {} MB", dir,
scourSecs / 60, maxSize / 1000. / 1000.);
}

// persist joinExisting aggregations. default every 24 hours, delete stuff older than 90 days
Expand Down Expand Up @@ -473,7 +476,7 @@ public void run() {
StringBuilder sbuff = new StringBuilder();
DiskCache.cleanCache(maxBytes, sbuff); // 1 Gbyte
sbuff.append("----------------------\n");
// cacheLog.info(sbuff.toString());
cacheLogger.debug(sbuff.toString());
}
}

Expand Down