feat(front): use logger instead of console.log
Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2535>
This commit is contained in:
parent
c01031945f
commit
b59e29883f
31 changed files with 233 additions and 70 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue