diff --git a/src/components/Dialog/HelpDialog/HelpDialog.vue b/src/components/Dialog/HelpDialog/HelpDialog.vue index 1716b4c648..fc0e7568b2 100644 --- a/src/components/Dialog/HelpDialog/HelpDialog.vue +++ b/src/components/Dialog/HelpDialog/HelpDialog.vue @@ -98,6 +98,7 @@ import ContactInfo from "./ContactInfo.vue"; import { UpdateInfo as UpdateInfoObject, UrlString } from "@/type/preload"; import { useStore } from "@/store"; import { useFetchNewUpdateInfos } from "@/composables/useFetchNewUpdateInfos"; +import { createLogger } from "@/domain/frontend/log"; type PageItem = { type: "item"; @@ -128,6 +129,7 @@ const modelValueComputed = computed({ // エディタのアップデート確認 const store = useStore(); +const { warn } = createLogger("HelpDialog"); const updateInfos = ref(); store.dispatch("GET_UPDATE_INFOS").then((obj) => (updateInfos.value = obj)); @@ -216,7 +218,7 @@ const pagedata = computed(() => { for (const id of store.getters.GET_SORTED_ENGINE_INFOS.map((m) => m.uuid)) { const manifest = store.state.engineManifests[id]; if (!manifest) { - store.dispatch("LOG_WARN", `manifest not found: ${id}`); + warn(`manifest not found: ${id}`); continue; } diff --git a/src/components/Dialog/SettingDialog.vue b/src/components/Dialog/SettingDialog.vue index 65f6119823..2444caf2d5 100644 --- a/src/components/Dialog/SettingDialog.vue +++ b/src/components/Dialog/SettingDialog.vue @@ -1025,6 +1025,7 @@ import { RootMiscSettingType, EngineId, } from "@/type/preload"; +import { createLogger } from "@/domain/frontend/log"; type SamplingRateOption = EngineSettingType["outputSamplingRate"]; @@ -1049,6 +1050,7 @@ const emit = }>(); const store = useStore(); +const { warn } = createLogger("SettingDialog"); const settingDialogOpenedComputed = computed({ get: () => props.modelValue, @@ -1163,7 +1165,7 @@ if (navigator.mediaDevices) { ); updateAudioOutputDevices(); } else { - store.dispatch("LOG_WARN", "navigator.mediaDevices is not available."); + warn("navigator.mediaDevices is not available."); } const acceptRetrieveTelemetryComputed = computed({ diff --git a/src/components/ErrorBoundary.vue b/src/components/ErrorBoundary.vue index 203fa8f0ce..e29d3fa10f 100644 --- a/src/components/ErrorBoundary.vue +++ b/src/components/ErrorBoundary.vue @@ -4,11 +4,9 @@