Change log_info to log.info by making it into an object

This commit is contained in:
Louis Lam
2022-04-13 23:33:37 +08:00
parent 94770cf865
commit e9ce1433cd
16 changed files with 289 additions and 268 deletions

View File

@@ -52,7 +52,7 @@
<script>
import Confirm from "../../components/Confirm.vue";
import { log_debug } from "../../util.ts";
import { log } from "../../util.ts";
import { useToast } from "vue-toastification";
const toast = useToast();
@@ -91,13 +91,13 @@ export default {
methods: {
loadDatabaseSize() {
log_debug("monitorhistory", "load database size");
log.debug("monitorhistory", "load database size");
this.$root.getSocket().emit("getDatabaseSize", (res) => {
if (res.ok) {
this.databaseSize = res.size;
log_debug("monitorhistory", "database size: " + res.size);
log.debug("monitorhistory", "database size: " + res.size);
} else {
log_debug("monitorhistory", res);
log.debug("monitorhistory", res);
}
});
},
@@ -108,7 +108,7 @@ export default {
this.loadDatabaseSize();
toast.success("Done");
} else {
log_debug("monitorhistory", res);
log.debug("monitorhistory", res);
}
});
},