set log level to debug

This commit is contained in:
Namekuji 2023-07-02 02:03:14 -04:00
parent ac2b057f85
commit eee80b3ff6
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -19,7 +19,7 @@ export async function getEmojiSize(url: string): Promise<Size> {
await lock.acquire();
try {
const key = `getEmojiSize:${url}`;
attempted = await redisClient.get(key) !== null;
attempted = (await redisClient.get(key)) !== null;
if (!attempted) {
await redisClient.set(key, "done", "EX", 60 * 10);
}
@ -33,7 +33,7 @@ export async function getEmojiSize(url: string): Promise<Size> {
}
try {
logger.info(`Retrieving emoji size from ${url}`);
logger.debug(`Retrieving emoji size from ${url}`);
const { width, height, mime } = await probeImageSize(url, {
timeout: 5000,
});