Skip to content

Commit

Permalink
CLI: Fixes laurent22#288: Don't log commands in release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Mar 14, 2018
1 parent 0317171 commit b07fe5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CliClient/app/app-gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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_ = [];

Expand Down
2 changes: 1 addition & 1 deletion CliClient/app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b07fe5c

Please sign in to comment.