feat(front): use logger instead of console.log

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2535>
This commit is contained in:
Kasper Seweryn 2023-07-25 16:32:24 +02:00 committed by Marge
commit b59e29883f
31 changed files with 233 additions and 70 deletions

View file

@ -64,7 +64,7 @@ const fetchData = async () => {
ordering: orderingString.value
}
logger.time('Fetching radios')
const stop = logger.time('Fetching radios')
try {
const response = await axios.get('radios/radios/', {
params
@ -75,7 +75,7 @@ const fetchData = async () => {
useErrorHandler(error as Error)
result.value = undefined
} finally {
logger.timeEnd('Fetching radios')
stop()
isLoading.value = false
}
}