Removed repeating console.log(s)

This commit is contained in:
gerlofvanek
2025-05-08 21:09:24 +02:00
parent 868b2475c1
commit ece9d7fb4b
2 changed files with 5 additions and 5 deletions

View File

@@ -328,7 +328,7 @@ const CacheManager = (function() {
.filter(key => isCacheKey(key)) .filter(key => isCacheKey(key))
.forEach(key => memoryCache.delete(key)); .forEach(key => memoryCache.delete(key));
console.log("Cache cleared successfully"); //console.log("Cache cleared successfully");
return true; return true;
}, },

View File

@@ -1377,7 +1377,7 @@ const app = {
}, },
refreshAllData: async function() { refreshAllData: async function() {
console.log('Price refresh started at', new Date().toLocaleTimeString()); //console.log('Price refresh started at', new Date().toLocaleTimeString());
if (app.isRefreshing) { if (app.isRefreshing) {
console.log('Refresh already in progress, skipping...'); console.log('Refresh already in progress, skipping...');
@@ -1411,7 +1411,7 @@ refreshAllData: async function() {
return; return;
} }
console.log('Starting refresh of all data...'); //console.log('Starting refresh of all data...');
app.isRefreshing = true; app.isRefreshing = true;
app.updateNextRefreshTime(); app.updateNextRefreshTime();
ui.showLoader(); ui.showLoader();
@@ -1478,7 +1478,7 @@ refreshAllData: async function() {
const cacheKey = `coinData_${coin.symbol}`; const cacheKey = `coinData_${coin.symbol}`;
CacheManager.set(cacheKey, coinData, 'prices'); CacheManager.set(cacheKey, coinData, 'prices');
console.log(`Updated price for ${coin.symbol}: $${coinData.current_price}`); //console.log(`Updated price for ${coin.symbol}: $${coinData.current_price}`);
} catch (coinError) { } catch (coinError) {
console.warn(`Failed to update ${coin.symbol}: ${coinError.message}`); console.warn(`Failed to update ${coin.symbol}: ${coinError.message}`);
@@ -1549,7 +1549,7 @@ refreshAllData: async function() {
app.scheduleNextRefresh(); app.scheduleNextRefresh();
} }
console.log(`Refresh process finished at ${new Date().toLocaleTimeString()}, next refresh scheduled: ${app.isAutoRefreshEnabled ? 'yes' : 'no'}`); //console.log(`Refresh process finished at ${new Date().toLocaleTimeString()}, next refresh scheduled: ${app.isAutoRefreshEnabled ? 'yes' : 'no'}`);
} }
}, },