Added debug statements

This commit is contained in:
2025-01-24 11:56:53 +00:00
parent 09f14ee683
commit c2ab964a29
3 changed files with 13 additions and 1 deletions

View File

@@ -1,11 +1,16 @@
import { goto } from "$app/navigation";
import { error } from '@sveltejs/kit';
import { logger } from "$lib/server/logger.js";
export const navigation = {
toHome: () => goto("/"),
toAbout: () => goto("/about"),
toContact: () => goto("/contact"),
toRepository: () => goto("/repo"),
toRepository: () => {
logger.debug("Entering '/lib/navigation.js'.toRepository");
goto("/repo");
logger.debug("Exiting '/lib/navigation.js'.toRepository");
},
to404: () => {
throw error(404, 'Page not found');
}