1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

CLI: Fixes #288: Don't log commands in release versions

This commit is contained in:
Laurent Cozic 2018-03-14 17:28:41 +00:00
parent 0317171097
commit b07fe5cc34
2 changed files with 3 additions and 3 deletions

View File

@ -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_ = [];

View File

@ -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);