Saving song infos to DB, refactor logging
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user