Revert refactoring of frontend logging since its crashing #2215 #2214 #2212

Revert "refactor(front): rename logger timing stop functions to `measureLoading`"

This reverts commit 9abdcb5ff7.

Revert "chore(front): remove unused dependency and add eslint rule to prevent console usage"

This reverts commit d1f9a99e1b.

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

This reverts commit b59e29883f.
This commit is contained in:
Georg Krause 2023-09-05 17:01:12 +02:00
commit e08add956e
34 changed files with 76 additions and 229 deletions

View file

@ -3,12 +3,9 @@ import type { InitModule } from '~/types'
import { watchEffect, watch } from 'vue'
import { useWebSocket, whenever } from '@vueuse/core'
import useWebSocketHandler from '~/composables/useWebSocketHandler'
import useLogger from '~/composables/useLogger'
import { CLIENT_RADIOS } from '~/utils/clientRadios'
export const install: InitModule = ({ store }) => {
const logger = useLogger()
watch(() => store.state.instance.instanceUrl, () => {
const url = store.getters['instance/absoluteUrl']('api/v1/activity')
.replace(/^http/, 'ws')
@ -28,7 +25,7 @@ export const install: InitModule = ({ store }) => {
})
watchEffect(() => {
logger.log('Websocket status:', status.value)
console.log('Websocket status:', status.value)
})
}, { immediate: true })