feat: set forceLogging to false
This commit is contained in:
parent
ff82604983
commit
9bddaef73b
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
* @see https://ayco.io/n/@ayco/astro-sw
|
* @see https://ayco.io/n/@ayco/astro-sw
|
||||||
*/
|
*/
|
||||||
const cacheName = `${__prefix ?? 'app'}-v${__version ?? '000'}`
|
const cacheName = `${__prefix ?? 'app'}-v${__version ?? '000'}`
|
||||||
// const forceLogging = true;
|
const forceLogging = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TODO: remove this once astro-sw allows importing utils
|
* TODO: remove this once astro-sw allows importing utils
|
||||||
|
@ -14,7 +14,7 @@ function logInfo(message, {context, force, data} = {}) {
|
||||||
? `[${context}]: `
|
? `[${context}]: `
|
||||||
: ''
|
: ''
|
||||||
|
|
||||||
if (force || isDev) {
|
if (force) {
|
||||||
console.info(`${context}${message}`, data ?? '');
|
console.info(`${context}${message}`, data ?? '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue