Skip to content

Firefly III: a personal finances manager

Remove logging

James Cole27c90bd217fa
diff --git a/frontend/src/components/accounts/Create.vue b/frontend/src/components/accounts/Create.vue
index 982b2207b2..1959e40ede 100644
--- a/frontend/src/components/accounts/Create.vue
+++ b/frontend/src/components/accounts/Create.vue
@@ -239,7 +239,7 @@ export default {
axios.post(url, submission)
.then(response => {
this.errors = lodashClonedeep(this.defaultErrors);
- console.log('success!');
+ // console.log('success!');
this.returnedId = parseInt(response.data.data.id);
this.returnedTitle = response.data.data.attributes.name;
this.successMessage = this.$t('firefly.stored_new_account_js', {ID: this.returnedId, name: this.returnedTitle});
diff --git a/frontend/src/components/accounts/Index.vue b/frontend/src/components/accounts/Index.vue
index eea7a5bb7e..17b7e1b0ab 100644
--- a/frontend/src/components/accounts/Index.vue
+++ b/frontend/src/components/accounts/Index.vue
@@ -253,7 +253,7 @@ export default {
let parts = pathName.split('/');
this.type = parts[parts.length - 1];
this.perPage = this.listPageSize ?? 51;
- console.log('Per page: ' + this.perPage);
+ // console.log('Per page: ' + this.perPage);
let params = new URLSearchParams(window.location.search);
this.currentPage = params.get('page') ? parseInt(params.get('page')) : 1;
@@ -369,9 +369,9 @@ export default {
this.fields.push({key: 'menu', label: ' ', sortable: false});
},
getAccountList: function () {
- console.log('getAccountList()');
+ // console.log('getAccountList()');
if (this.indexReady && !this.loading && !this.downloaded) {
- console.log('Index ready, not loading and not already downloaded. Reset.');
+ // console.log('Index ready, not loading and not already downloaded. Reset.');
this.loading = true;
this.perPage = this.listPageSize ?? 51;
this.accounts = [];
@@ -379,13 +379,13 @@ export default {
this.downloadAccountList(1);
}
if (this.indexReady && !this.loading && this.downloaded) {
- console.log('Index ready, not loading and not downloaded.');
+ // console.log('Index ready, not loading and not downloaded.');
this.loading = true;
this.filterAccountList();
}
},
downloadAccountList: function (page) {
- console.log('downloadAccountList(' + page + ')');
+ // console.log('downloadAccountList(' + page + ')');
configureAxios().then(async (api) => {
api.get('./api/v1/accounts?type=' + this.type + '&page=' + page + '&key=' + this.cacheKey)
.then(response => {
@@ -407,7 +407,7 @@ export default {
});
},
filterAccountListAndReturn: function (allAccounts) {
- console.log('filterAccountListAndReturn()');
+ // console.log('filterAccountListAndReturn()');
let accounts = [];
for (let i in allAccounts) {
if (allAccounts.hasOwnProperty(i) && /^0$|^[1-9]\d*$/.test(i) && i <= 4294967294) {
@@ -461,7 +461,7 @@ export default {
},
parsePages: function (data) {
this.total = parseInt(data.pagination.total);
- console.log('Total is now ' + this.total);
+ // console.log('Total is now ' + this.total);
},
// parseAccountsAndReturn: function (data) {
// console.log('In parseAccountsAndReturn()');
diff --git a/frontend/src/components/dashboard/Calendar.vue b/frontend/src/components/dashboard/Calendar.vue
index 11a776acaf..fb7ef8823c 100644
--- a/frontend/src/components/dashboard/Calendar.vue
+++ b/frontend/src/components/dashboard/Calendar.vue
@@ -102,7 +102,7 @@ Vue.component('date-picker', DatePicker)
export default {
name: "Calendar",
created() {
- console.log('Now in calendar created');
+ // console.log('Now in calendar created');
this.ready = true;
this.locale = localStorage.locale ?? 'en-US';
},
@@ -129,9 +129,9 @@ export default {
],
),
resetDate: function () {
- console.log('Reset date to');
- console.log(this.defaultStart);
- console.log(this.defaultEnd);
+ // console.log('Reset date to');
+ // console.log(this.defaultStart);
+ // console.log(this.defaultEnd);
this.range.start = this.defaultStart;
this.range.end = this.defaultEnd;
this.setStart(this.defaultStart);
@@ -512,7 +512,7 @@ export default {
},
generatePeriods: function () {
this.periods = [];
- console.log('The view range is "' + this.viewRange + '".');
+ // console.log('The view range is "' + this.viewRange + '".');
switch (this.viewRange) {
case '1D':
this.generateDaily();