more logging
This commit is contained in:
parent
4d2eaa645b
commit
f508a358b1
|
@ -112,6 +112,8 @@ export async function importCustomEmojis(
|
||||||
for (const emojiPath of containedEmojis) {
|
for (const emojiPath of containedEmojis) {
|
||||||
// strip extension and get filename to use as name
|
// strip extension and get filename to use as name
|
||||||
const name = path.basename(emojiPath, path.extname(emojiPath));
|
const name = path.basename(emojiPath, path.extname(emojiPath));
|
||||||
|
logger.info(`importing ${name}`)
|
||||||
|
|
||||||
await Emojis.delete({
|
await Emojis.delete({
|
||||||
name: name,
|
name: name,
|
||||||
});
|
});
|
||||||
|
@ -124,6 +126,8 @@ export async function importCustomEmojis(
|
||||||
const file = fs.createReadStream(emojiPath);
|
const file = fs.createReadStream(emojiPath);
|
||||||
const size = await probeImageSize(file);
|
const size = await probeImageSize(file);
|
||||||
file.destroy();
|
file.destroy();
|
||||||
|
logger.info(`emoji size: ${size.width}x${size.height}`)
|
||||||
|
|
||||||
await Emojis.insert({
|
await Emojis.insert({
|
||||||
id: genId(),
|
id: genId(),
|
||||||
updatedAt: new Date(),
|
updatedAt: new Date(),
|
||||||
|
|
Loading…
Reference in New Issue