Browse Source

Clean up console.log

main
Stephanie Gredell 5 months ago
parent
commit
e826ba761a
  1. 4
      static/commands.js

4
static/commands.js

@ -56,10 +56,7 @@ export class CommandInvoker {
if (this.history.length > this.maxHistorySize) { if (this.history.length > this.maxHistorySize) {
this.history.shift(); this.history.shift();
} }
console.log(`Executed: ${command.getDescription()}`);
} catch (error) { } catch (error) {
console.error(`Command execution failed: ${command.getDescription()}`, error);
throw error; throw error;
} }
} }
@ -73,7 +70,6 @@ export class CommandInvoker {
const command = this.history.pop(); const command = this.history.pop();
if (command.undo) { if (command.undo) {
command.undo(this.app); command.undo(this.app);
console.log(`Undid: ${command.getDescription()}`);
} }
} }

Loading…
Cancel
Save