From b07fe5cc348ab8c3dd611d718fd20c8272522b79 Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Wed, 14 Mar 2018 17:28:41 +0000 Subject: [PATCH] CLI: Fixes #288: Don't log commands in release versions --- CliClient/app/app-gui.js | 4 ++-- CliClient/app/app.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CliClient/app/app-gui.js b/CliClient/app/app-gui.js index 037cedddc81..ec166e77499 100644 --- a/CliClient/app/app-gui.js +++ b/CliClient/app/app-gui.js @@ -496,7 +496,7 @@ class AppGui { cmd = cmd.trim(); if (!cmd.length) return; - this.logger().info('Got command: ' + cmd); + // this.logger().debug('Got command: ' + cmd); try { let note = this.widget('noteList').currentItem; @@ -757,7 +757,7 @@ class AppGui { if (statusBar.promptActive) processShortcutKeys = false; if (processShortcutKeys) { - this.logger().info('Shortcut:', shortcutKey, keymapItem); + this.logger().debug('Shortcut:', shortcutKey, keymapItem); this.currentShortcutKeys_ = []; diff --git a/CliClient/app/app.js b/CliClient/app/app.js index 605892cd331..b702fbfb34e 100644 --- a/CliClient/app/app.js +++ b/CliClient/app/app.js @@ -292,7 +292,7 @@ class Application extends BaseApplication { async execCommand(argv) { if (!argv.length) return this.execCommand(['help']); - reg.logger().info('execCommand()', argv); + // reg.logger().debug('execCommand()', argv); const commandName = argv[0]; this.activeCommand_ = this.findCommandByName(commandName);