feat(#27): Set up consola logger, make use of log levels in backend and frontend
This commit is contained in:
@@ -119,6 +119,7 @@ const appConfig = useAppConfig()
|
||||
const toast = useToast()
|
||||
const userStore = useUserStore()
|
||||
const { getUserById, updateEmailPreferences } = useUser()
|
||||
const logger = useLogger().withTag('settings')
|
||||
|
||||
const colors = [
|
||||
'red',
|
||||
@@ -152,7 +153,7 @@ onMounted(async () => {
|
||||
emailOnFormCreated.value = userData.emailOnFormCreated ?? true
|
||||
emailOnFormSubmitted.value = userData.emailOnFormSubmitted ?? true
|
||||
} catch (error) {
|
||||
console.error('Failed to load user email preferences:', error)
|
||||
logger.error('Failed to load user email preferences:', error)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user