зеркало из https://github.com/nextcloud/cookbook.git
Remove verboseDebugLogging flag
Instead, just do everything through the logging API Signed-off-by: Marcel Robitaille <mail@marcelrobitaille.me>
This commit is contained in:
Родитель
51f5bdab5a
Коммит
64c32957b2
|
@ -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: {
|
||||
|
|
Загрузка…
Ссылка в новой задаче