Remove console logging

This commit is contained in:
Julian Stirling 2026-02-15 16:57:08 +00:00
parent f1a51dad84
commit c583be7756
7 changed files with 0 additions and 34 deletions

View file

@ -235,24 +235,19 @@ export default {
* *
*/ */
async checkExistingTasks() { async checkExistingTasks() {
console.log("Checking for existing tasks for action ", this.action);
let response = await this.findOngoingActions(this.thing, this.action); let response = await this.findOngoingActions(this.thing, this.action);
// Exit if response is null, due to an error. // Exit if response is null, due to an error.
if (response == null) return; if (response == null) return;
// Check for a task that is ongoing. // Check for a task that is ongoing.
// We can't handle multiple tasks ongoing, so this picks the first. // We can't handle multiple tasks ongoing, so this picks the first.
const ongoingTask = response.data.find((t) => ["pending", "running"].includes(t.status)); const ongoingTask = response.data.find((t) => ["pending", "running"].includes(t.status));
console.log("Existing tasks: ", response.data, "Ongoing task: ", ongoingTask);
if (ongoingTask) { if (ongoingTask) {
// There is a started task // There is a started task
console.log("Found ongoing task, resuming polling: ", ongoingTask);
this.taskStarted = true; this.taskStarted = true;
this.$emit("taskStarted"); this.$emit("taskStarted");
// Find its URL // Find its URL
console.log("Task links: ", ongoingTask.links);
const taskUrl = ongoingTask.links.find((t) => t.rel == "self").href; const taskUrl = ongoingTask.links.find((t) => t.rel == "self").href;
this.startPollingTask(ongoingTask.id, taskUrl); this.startPollingTask(ongoingTask.id, taskUrl);
console.log("Resumed polling on existing task with URL: ", taskUrl);
} }
}, },
@ -272,7 +267,6 @@ export default {
async startTask() { async startTask() {
// Starts a new Action task // Starts a new Action task
console.log("Starting task with data:", this.submitData);
this.$emit("submit", this.submitData); this.$emit("submit", this.submitData);
// Send a request to start a task // Send a request to start a task
this.taskStarted = true; this.taskStarted = true;
@ -328,7 +322,6 @@ export default {
this.taskUrl = null; this.taskUrl = null;
this.taskRunning = false; this.taskRunning = false;
this.taskStarted = false; this.taskStarted = false;
console.log("Task ended with status: ", this.taskStatus);
this.$emit("finished"); this.$emit("finished");
}, },

View file

@ -60,7 +60,6 @@ export default {
let imageUri = response.output.href; let imageUri = response.output.href;
if (!imageUri) { if (!imageUri) {
this.modalError("No image URI returned from capture task."); this.modalError("No image URI returned from capture task.");
console.log(`Capture resulted in response ${response}`);
return; return;
} }
// To save the returned data, we make a virtual link and click it // To save the returned data, we make a virtual link and click it

View file

@ -82,7 +82,6 @@ export default {
computed: { computed: {
positionStatusUri: function () { positionStatusUri: function () {
console.log("Computing position status URI", this.thingActionUrl("stage", "position"));
return this.thingActionUrl("stage", "position"); return this.thingActionUrl("stage", "position");
}, },
}, },
@ -114,12 +113,10 @@ export default {
}, },
onMoveImage(payload) { onMoveImage(payload) {
console.log("Received move in image coordinates:", payload);
this.moveInImageCoordinatesRequest(payload.x, payload.y, payload.absolute); this.moveInImageCoordinatesRequest(payload.x, payload.y, payload.absolute);
}, },
onMoveStep(payload) { onMoveStep(payload) {
console.log("Received key move step event:", payload);
const { x: x_steps, y: y_steps, z: z_steps } = payload; const { x: x_steps, y: y_steps, z: z_steps } = payload;
const navigationStepSize = this.$store.state.navigationStepSize; const navigationStepSize = this.$store.state.navigationStepSize;
const navigationInvert = this.$store.state.navigationInvert; const navigationInvert = this.$store.state.navigationInvert;
@ -128,7 +125,6 @@ export default {
const z = z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1); const z = z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1);
const movePayload = { x, y, z, absolute: false }; const movePayload = { x, y, z, absolute: false };
eventBus.emit("globalMoveEvent", movePayload); eventBus.emit("globalMoveEvent", movePayload);
console.log("Emitted global move event with:", movePayload);
}, },
async move(payload) { async move(payload) {
@ -148,7 +144,6 @@ export default {
y: this.setPosition.y + y, y: this.setPosition.y + y,
z: this.setPosition.z + z, 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.$nextTick(); // Wait for Vue to update the position
await this.startMoveTask(); await this.startMoveTask();
@ -158,7 +153,6 @@ export default {
await this.$refs.moveButton.startTask(); await this.$refs.moveButton.startTask();
}, },
moveComplete() { moveComplete() {
console.log("Move completed.");
this.updatePosition(); this.updatePosition();
this.moveLock = false; this.moveLock = false;
}, },

View file

@ -199,7 +199,6 @@ export default {
} else { } else {
// if there's no existing log message to append to, discard lines // if there's no existing log message to append to, discard lines
// until we find one. // until we find one.
console.log("Ignored non-matching lines at the start of the log file.");
continue; continue;
} }
} }

View file

@ -168,7 +168,6 @@ export default {
const link = document.createElement("a"); const link = document.createElement("a");
link.href = url; link.href = url;
link.setAttribute("download", filename); link.setAttribute("download", filename);
console.log(link);
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
}, },

View file

@ -202,7 +202,6 @@ export default {
} }
}, },
async readSettings() { async readSettings() {
this.workflowName = await this.readThingProperty("smart_scan", "workflow_name"); this.workflowName = await this.readThingProperty("smart_scan", "workflow_name");
if (!this.workflowName) { if (!this.workflowName) {
@ -211,11 +210,9 @@ export default {
} }
if (this.workflowName) { if (this.workflowName) {
console.log("Current workflow name: ", this.workflowName);
this.ready = await this.readThingProperty(this.workflowName, "ready", true); this.ready = await this.readThingProperty(this.workflowName, "ready", true);
this.workflowSettings = this.workflowSettings =
(await this.readThingProperty(this.workflowName, "settings_ui", true)) || []; (await this.readThingProperty(this.workflowName, "settings_ui", true)) || [];
console.log(this.workflowSettings);
this.workflowDisplayName = await this.readThingProperty( this.workflowDisplayName = await this.readThingProperty(
this.workflowName, this.workflowName,
"display_name", "display_name",
@ -248,21 +245,16 @@ export default {
* - starts the polling loop that fetches scan progress and preview images * - starts the polling loop that fetches scan progress and preview images
*/ */
startScanning() { startScanning() {
console.log("Starting scan...");
this.lastStitchedImage = null; this.lastStitchedImage = null;
this.scanning = true; this.scanning = true;
setTimeout(this.pollScan, 1000); setTimeout(this.pollScan, 1000);
}, },
async pollScan() { async pollScan() {
console.log("Polling for scan progress...");
if (this.cancellable) { if (this.cancellable) {
// while the scan is running // while the scan is running
console.log("Polling for scan updates...");
let mtime = await this.readThingProperty("smart_scan", "latest_preview_stitch_time", true); let mtime = await this.readThingProperty("smart_scan", "latest_preview_stitch_time", true);
console.log("smart scan latest preview stitch time: ", mtime);
if (mtime !== null) { if (mtime !== null) {
this.lastStitchedImage = `${this.$store.getters.baseUri}/smart_scan/latest_preview_stitch.jpg?t=${mtime}`; 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); this.lastScanName = await this.readThingProperty("smart_scan", "latest_scan_name", true);
@ -270,7 +262,6 @@ export default {
} }
}, },
async setWorkflow(name) { async setWorkflow(name) {
console.log("Setting workflow to ", name);
try { try {
this.workflowName = name; this.workflowName = name;
@ -278,13 +269,6 @@ export default {
// refresh UI // refresh UI
await this.readSettings(); await this.readSettings();
console.log(
"readsettings values: ",
this.workflowName,
this.workflowSettings,
this.workflowDisplayName,
this.workflowBlurb,
);
} catch (err) { } catch (err) {
this.modalError(err); this.modalError(err);
@ -299,7 +283,6 @@ export default {
const link = document.createElement("a"); const link = document.createElement("a");
link.href = url; link.href = url;
link.setAttribute("download", filename); link.setAttribute("download", filename);
console.log(link);
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
}, },

View file

@ -147,7 +147,6 @@ export default createStore({
(store) => { (store) => {
// Load initial state from localStorage // Load initial state from localStorage
LOCALSTORAGE_KEYS.forEach((key) => { LOCALSTORAGE_KEYS.forEach((key) => {
console.log(key);
const saved = localStorage.getItem(key); const saved = localStorage.getItem(key);
if (saved !== null) { if (saved !== null) {
try { try {