Saving song infos to DB, refactor logging

This commit is contained in:
2023-04-23 12:46:14 +02:00
parent 1cd9d83910
commit 971c846dd1
8 changed files with 396 additions and 228 deletions

View File

@ -1,6 +1,7 @@
import { BASE_URL, WEBSUB_HUB } from '$env/static/private';
import { PUBLIC_MASTODON_INSTANCE_DISPLAY_NAME } from '$env/static/public';
import type { Post } from '$lib//mastodon/response';
import { log } from '$lib/log';
import { Feed } from 'feed';
import fs from 'fs/promises';
@ -59,6 +60,6 @@ export async function saveAtomFeed(feed: Feed) {
body: params
});
} catch (e) {
console.error('Failed to update WebSub hub', e);
log.error('Failed to update WebSub hub', e);
}
}