mirror of
https://github.com/fosrl/pangolin.git
synced 2026-08-12 23:40:40 +02:00
remove excess logging
This commit is contained in:
+5
-5
@@ -48,11 +48,11 @@ class AdaptiveCache {
|
|||||||
async get<T = any>(key: string): Promise<T | undefined> {
|
async get<T = any>(key: string): Promise<T | undefined> {
|
||||||
// Use local cache as fallback or primary
|
// Use local cache as fallback or primary
|
||||||
const value = localCache.get<T>(key);
|
const value = localCache.get<T>(key);
|
||||||
if (value !== undefined) {
|
// if (value !== undefined) {
|
||||||
logger.debug(`Cache hit in local cache: ${key}`);
|
// logger.debug(`Cache hit in local cache: ${key}`);
|
||||||
} else {
|
// } else {
|
||||||
logger.debug(`Cache miss in local cache: ${key}`);
|
// logger.debug(`Cache miss in local cache: ${key}`);
|
||||||
}
|
// }
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+10
-10
@@ -111,11 +111,11 @@ class AdaptiveCache {
|
|||||||
|
|
||||||
// Use local cache as fallback or primary
|
// Use local cache as fallback or primary
|
||||||
const value = localCache.get<T>(key);
|
const value = localCache.get<T>(key);
|
||||||
if (value !== undefined) {
|
// if (value !== undefined) {
|
||||||
logger.debug(`Cache hit in local cache: ${key}`);
|
// logger.debug(`Cache hit in local cache: ${key}`);
|
||||||
} else {
|
// } else {
|
||||||
logger.debug(`Cache miss in local cache: ${key}`);
|
// logger.debug(`Cache miss in local cache: ${key}`);
|
||||||
}
|
// }
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -367,11 +367,11 @@ class RegionalAdaptiveCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const value = regionalLocalCache.get<T>(key);
|
const value = regionalLocalCache.get<T>(key);
|
||||||
if (value !== undefined) {
|
// if (value !== undefined) {
|
||||||
logger.debug(`[regional] Cache hit in local cache: ${key}`);
|
// logger.debug(`[regional] Cache hit in local cache: ${key}`);
|
||||||
} else {
|
// } else {
|
||||||
logger.debug(`[regional] Cache miss in local cache: ${key}`);
|
// logger.debug(`[regional] Cache miss in local cache: ${key}`);
|
||||||
}
|
// }
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user