Remove verboseDebugLogging flag

Instead, just do everything through the logging API

Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
This commit is contained in:
Marcel Robitaille 2023-03-18 01:15:49 +01:00
Родитель 51f5bdab5a
Коммит 64c32957b2
4 изменённых файлов: 3 добавлений и 13 удалений

Просмотреть файл

@ -452,7 +452,7 @@ export default {
},
watch: {
recipe(r) {
this.$log.debug('Recipe has been updated')
this.$log.debug("Recipe has been updated")
if (r) {
this.$log.debug("Recipe", r)

Просмотреть файл

@ -211,10 +211,7 @@ export const suggestionsPopupMixin = {
* Recover suggestions popup on focus
*/
handleSuggestionsPopupFocus(e) {
if (this.verboseDebugLogging) {
// eslint-disable-next-line no-console
console.log("focus", e, JSON.stringify(this.suggestionsData))
}
this.$log.debug("focus", e, JSON.stringify(this.suggestionsData))
if (this.suggestionsData?.blurred) {
this.suggestionsData.blurred = false
}
@ -223,10 +220,7 @@ export const suggestionsPopupMixin = {
* Cancel selection if input gets blurred
*/
handleSuggestionsPopupBlur(e) {
if (this.verboseDebugLogging) {
// eslint-disable-next-line no-console
console.log("blur", e, JSON.stringify(this.suggestionsData))
}
this.$log.debug("blur", e, JSON.stringify(this.suggestionsData))
if (!this.suggestionsPopupVisible || !this.$refs.suggestionsPopup) {
return
}

Просмотреть файл

@ -40,9 +40,6 @@ window.escapeHTML = helpers.escapeHTML
Vue.prototype.$window = window
Vue.prototype.OC = OC
// eslint-disable-next-line no-undef
Vue.prototype.verboseDebugLogging = verboseDebugLogging
// Markdown for Vue
Vue.use(VueShowdown, {
// set default flavor for Markdown

Просмотреть файл

@ -28,7 +28,6 @@ function cookbookConfig (env) {
new CleanWebpackPlugin(),
new webpack.DefinePlugin({
'__webpack_use_dev_server__': env.dev_server || false,
'verboseDebugLogging': isDev && (process.env.VERBOSE || false),
}),
],
resolve: {