set log level to debug
This commit is contained in:
parent
ac2b057f85
commit
eee80b3ff6
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ export async function getEmojiSize(url: string): Promise<Size> {
|
||||||
await lock.acquire();
|
await lock.acquire();
|
||||||
try {
|
try {
|
||||||
const key = `getEmojiSize:${url}`;
|
const key = `getEmojiSize:${url}`;
|
||||||
attempted = await redisClient.get(key) !== null;
|
attempted = (await redisClient.get(key)) !== null;
|
||||||
if (!attempted) {
|
if (!attempted) {
|
||||||
await redisClient.set(key, "done", "EX", 60 * 10);
|
await redisClient.set(key, "done", "EX", 60 * 10);
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ export async function getEmojiSize(url: string): Promise<Size> {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
logger.info(`Retrieving emoji size from ${url}`);
|
logger.debug(`Retrieving emoji size from ${url}`);
|
||||||
const { width, height, mime } = await probeImageSize(url, {
|
const { width, height, mime } = await probeImageSize(url, {
|
||||||
timeout: 5000,
|
timeout: 5000,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue