reduce frontend log spam from debug messages
This commit is contained in:
@@ -142,7 +142,7 @@ function reset() {
|
||||
function remove() {
|
||||
if (captcha.value.remove && captchaWidgetId.value) {
|
||||
try {
|
||||
if (_DEV_) console.log('remove', props.provider, captchaWidgetId.value);
|
||||
if (_DEV_) console.debug('remove', props.provider, captchaWidgetId.value);
|
||||
captcha.value.remove(captchaWidgetId.value);
|
||||
} catch (error: unknown) {
|
||||
// ignore
|
||||
|
||||
@@ -52,7 +52,7 @@ async function fetchLanguage(to: string): Promise<void> {
|
||||
return bundle.id === language || bundle.aliases?.includes(language);
|
||||
});
|
||||
if (bundles.length > 0) {
|
||||
if (_DEV_) console.log(`Loading language: ${language}`);
|
||||
if (_DEV_) console.debug(`Loading language: ${language}`);
|
||||
await highlighter.loadLanguage(bundles[0].import);
|
||||
codeLang.value = language;
|
||||
} else {
|
||||
|
||||
@@ -106,7 +106,7 @@ windowRouter.addListener('replace', ctx => {
|
||||
});
|
||||
|
||||
windowRouter.addListener('change', ctx => {
|
||||
if (_DEV_) console.log('windowRouter: change', ctx.fullPath);
|
||||
if (_DEV_) console.debug('windowRouter: change', ctx.fullPath);
|
||||
searchMarkerId.value = getSearchMarker(ctx.fullPath);
|
||||
});
|
||||
|
||||
|
||||
@@ -386,7 +386,7 @@ function prepend(item: MisskeyEntity): void {
|
||||
return;
|
||||
}
|
||||
|
||||
if (_DEV_) console.log(isHead(), isPausingUpdate);
|
||||
if (_DEV_) console.debug(isHead(), isPausingUpdate);
|
||||
|
||||
if (isHead() && !isPausingUpdate) unshiftItems([item]);
|
||||
else prependQueue(item);
|
||||
|
||||
@@ -307,7 +307,7 @@ async function onSubmit(): Promise<void> {
|
||||
emit('approvalPending');
|
||||
} else {
|
||||
const resJson = (await res.json()) as Misskey.entities.SignupResponse;
|
||||
if (_DEV_) console.log(resJson);
|
||||
if (_DEV_) console.debug(resJson);
|
||||
|
||||
emit('signup', resJson);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user