Saving song infos to DB, refactor logging
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { log } from '$lib/log';
|
||||
import { TimelineReader } from '$lib/server/timeline';
|
||||
import type { HandleServerError } from '@sveltejs/kit';
|
||||
import fs from 'fs/promises';
|
||||
@ -6,7 +7,7 @@ TimelineReader.init();
|
||||
|
||||
export const handleError = (({ error }) => {
|
||||
if (error instanceof Error) {
|
||||
console.error('Something went wrong: ', error.name, error.message);
|
||||
log.error('Something went wrong: ', error.name, error.message);
|
||||
}
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user