diff --git a/plugins/plugin-annotations/src/cutlist.mjs b/plugins/plugin-annotations/src/cutlist.mjs index 6e561457d91..a4c8f7d4c2b 100644 --- a/plugins/plugin-annotations/src/cutlist.mjs +++ b/plugins/plugin-annotations/src/cutlist.mjs @@ -42,7 +42,7 @@ function addCut(store, so = {}) { return store } if (typeof material !== 'string') { - store.log.warning(`Tried to set material to a value that is not a string`) + store.log.warn(`Tried to set material to a value that is not a string`) return store } const path = ['cutlist', partName, 'materials', material] diff --git a/plugins/plugin-i18n/src/index.mjs b/plugins/plugin-i18n/src/index.mjs index 0b6c439c726..6bee18b6ebc 100644 --- a/plugins/plugin-i18n/src/index.mjs +++ b/plugins/plugin-i18n/src/index.mjs @@ -10,10 +10,10 @@ export const plugin = { else { const msg = "No translation method or object was passed to the i18n plugin. This plugin won't do anything without that" - if (pattern?.store?.log?.warning) { + if (pattern?.store?.log?.warn) { if (!pattern.store.get(['plugins', 'plugin-i18n', 'missingMethodWarning'])) { pattern.store.set(['plugins', 'plugin-i18n', 'missingMethodWarning'], true) - pattern.store.log.warning(msg) + pattern.store.log.warn(msg) } } else console.log(msg) diff --git a/plugins/plugin-mirror/src/index.mjs b/plugins/plugin-mirror/src/index.mjs index befcc9e6e99..0e38f3c689a 100644 --- a/plugins/plugin-mirror/src/index.mjs +++ b/plugins/plugin-mirror/src/index.mjs @@ -22,7 +22,7 @@ const mirrorGen = (start, end) => { const mirrorCount = Number(point.attributes.get('data-mirrored')) // some points returned by utils do not have logs if (mirrorCount > 0 && point.log) - point.log.warning( + point.log.warn( `Point ${point.name} was mirrored more than once (${ mirrorCount + 1 }) which can lead to hard to trace bugs`