From c583be7756a7f73f8207926b4c52ccd0a80c02ee Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Sun, 15 Feb 2026 16:57:08 +0000 Subject: [PATCH] Remove console logging --- .../labThingsComponents/actionButton.vue | 7 ------- .../controlComponents/paneControl.vue | 1 - .../controlComponents/positionControl.vue | 6 ------ .../tabContentComponents/loggingContent.vue | 1 - .../scanListComponents/scanCard.vue | 1 - .../tabContentComponents/slideScanContent.vue | 17 ----------------- webapp/src/store.js | 1 - 7 files changed, 34 deletions(-) diff --git a/webapp/src/components/labThingsComponents/actionButton.vue b/webapp/src/components/labThingsComponents/actionButton.vue index e3099a8a..234b995c 100644 --- a/webapp/src/components/labThingsComponents/actionButton.vue +++ b/webapp/src/components/labThingsComponents/actionButton.vue @@ -235,24 +235,19 @@ export default { * */ async checkExistingTasks() { - console.log("Checking for existing tasks for action ", this.action); let response = await this.findOngoingActions(this.thing, this.action); // Exit if response is null, due to an error. if (response == null) return; // Check for a task that is ongoing. // We can't handle multiple tasks ongoing, so this picks the first. const ongoingTask = response.data.find((t) => ["pending", "running"].includes(t.status)); - console.log("Existing tasks: ", response.data, "Ongoing task: ", ongoingTask); if (ongoingTask) { // There is a started task - console.log("Found ongoing task, resuming polling: ", ongoingTask); this.taskStarted = true; this.$emit("taskStarted"); // Find its URL - console.log("Task links: ", ongoingTask.links); const taskUrl = ongoingTask.links.find((t) => t.rel == "self").href; this.startPollingTask(ongoingTask.id, taskUrl); - console.log("Resumed polling on existing task with URL: ", taskUrl); } }, @@ -272,7 +267,6 @@ export default { async startTask() { // Starts a new Action task - console.log("Starting task with data:", this.submitData); this.$emit("submit", this.submitData); // Send a request to start a task this.taskStarted = true; @@ -328,7 +322,6 @@ export default { this.taskUrl = null; this.taskRunning = false; this.taskStarted = false; - console.log("Task ended with status: ", this.taskStatus); this.$emit("finished"); }, diff --git a/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue b/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue index e2865a53..11cdba81 100644 --- a/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue +++ b/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue @@ -60,7 +60,6 @@ export default { let imageUri = response.output.href; if (!imageUri) { this.modalError("No image URI returned from capture task."); - console.log(`Capture resulted in response ${response}`); return; } // To save the returned data, we make a virtual link and click it diff --git a/webapp/src/components/tabContentComponents/controlComponents/positionControl.vue b/webapp/src/components/tabContentComponents/controlComponents/positionControl.vue index 1223ae79..544be308 100644 --- a/webapp/src/components/tabContentComponents/controlComponents/positionControl.vue +++ b/webapp/src/components/tabContentComponents/controlComponents/positionControl.vue @@ -82,7 +82,6 @@ export default { computed: { positionStatusUri: function () { - console.log("Computing position status URI", this.thingActionUrl("stage", "position")); return this.thingActionUrl("stage", "position"); }, }, @@ -114,12 +113,10 @@ export default { }, onMoveImage(payload) { - console.log("Received move in image coordinates:", payload); this.moveInImageCoordinatesRequest(payload.x, payload.y, payload.absolute); }, onMoveStep(payload) { - console.log("Received key move step event:", payload); const { x: x_steps, y: y_steps, z: z_steps } = payload; const navigationStepSize = this.$store.state.navigationStepSize; const navigationInvert = this.$store.state.navigationInvert; @@ -128,7 +125,6 @@ export default { const z = z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1); const movePayload = { x, y, z, absolute: false }; eventBus.emit("globalMoveEvent", movePayload); - console.log("Emitted global move event with:", movePayload); }, async move(payload) { @@ -148,7 +144,6 @@ export default { y: this.setPosition.y + y, z: this.setPosition.z + z, }; - console.log("Updated setPosition for relative move:", this.setPosition); } await this.$nextTick(); // Wait for Vue to update the position await this.startMoveTask(); @@ -158,7 +153,6 @@ export default { await this.$refs.moveButton.startTask(); }, moveComplete() { - console.log("Move completed."); this.updatePosition(); this.moveLock = false; }, diff --git a/webapp/src/components/tabContentComponents/loggingContent.vue b/webapp/src/components/tabContentComponents/loggingContent.vue index 4c31f2a1..df501350 100644 --- a/webapp/src/components/tabContentComponents/loggingContent.vue +++ b/webapp/src/components/tabContentComponents/loggingContent.vue @@ -199,7 +199,6 @@ export default { } else { // if there's no existing log message to append to, discard lines // until we find one. - console.log("Ignored non-matching lines at the start of the log file."); continue; } } diff --git a/webapp/src/components/tabContentComponents/scanListComponents/scanCard.vue b/webapp/src/components/tabContentComponents/scanListComponents/scanCard.vue index 33370803..16e1fb26 100644 --- a/webapp/src/components/tabContentComponents/scanListComponents/scanCard.vue +++ b/webapp/src/components/tabContentComponents/scanListComponents/scanCard.vue @@ -168,7 +168,6 @@ export default { const link = document.createElement("a"); link.href = url; link.setAttribute("download", filename); - console.log(link); document.body.appendChild(link); link.click(); }, diff --git a/webapp/src/components/tabContentComponents/slideScanContent.vue b/webapp/src/components/tabContentComponents/slideScanContent.vue index 63ed9e65..5b362b53 100644 --- a/webapp/src/components/tabContentComponents/slideScanContent.vue +++ b/webapp/src/components/tabContentComponents/slideScanContent.vue @@ -202,7 +202,6 @@ export default { } }, async readSettings() { - this.workflowName = await this.readThingProperty("smart_scan", "workflow_name"); if (!this.workflowName) { @@ -211,11 +210,9 @@ export default { } if (this.workflowName) { - console.log("Current workflow name: ", this.workflowName); this.ready = await this.readThingProperty(this.workflowName, "ready", true); this.workflowSettings = (await this.readThingProperty(this.workflowName, "settings_ui", true)) || []; - console.log(this.workflowSettings); this.workflowDisplayName = await this.readThingProperty( this.workflowName, "display_name", @@ -248,21 +245,16 @@ export default { * - starts the polling loop that fetches scan progress and preview images */ startScanning() { - console.log("Starting scan..."); this.lastStitchedImage = null; this.scanning = true; setTimeout(this.pollScan, 1000); }, async pollScan() { - console.log("Polling for scan progress..."); if (this.cancellable) { // while the scan is running - console.log("Polling for scan updates..."); let mtime = await this.readThingProperty("smart_scan", "latest_preview_stitch_time", true); - console.log("smart scan latest preview stitch time: ", mtime); if (mtime !== null) { this.lastStitchedImage = `${this.$store.getters.baseUri}/smart_scan/latest_preview_stitch.jpg?t=${mtime}`; - console.log("Updated preview image URL: ", this.lastStitchedImage); } this.lastScanName = await this.readThingProperty("smart_scan", "latest_scan_name", true); @@ -270,7 +262,6 @@ export default { } }, async setWorkflow(name) { - console.log("Setting workflow to ", name); try { this.workflowName = name; @@ -278,13 +269,6 @@ export default { // refresh UI await this.readSettings(); - console.log( - "readsettings values: ", - this.workflowName, - this.workflowSettings, - this.workflowDisplayName, - this.workflowBlurb, - ); } catch (err) { this.modalError(err); @@ -299,7 +283,6 @@ export default { const link = document.createElement("a"); link.href = url; link.setAttribute("download", filename); - console.log(link); document.body.appendChild(link); link.click(); }, diff --git a/webapp/src/store.js b/webapp/src/store.js index a804ce89..0518b5bc 100644 --- a/webapp/src/store.js +++ b/webapp/src/store.js @@ -147,7 +147,6 @@ export default createStore({ (store) => { // Load initial state from localStorage LOCALSTORAGE_KEYS.forEach((key) => { - console.log(key); const saved = localStorage.getItem(key); if (saved !== null) { try {