From 30387142cd1fee828f0dc39864c68960167deff1 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 2 Oct 2016 16:09:55 +0100 Subject: Tweak logging. --- background_scripts/commands.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'background_scripts') diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 7ab09f24..531d491f 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -61,11 +61,13 @@ Commands = switch tokens[0] when "map" [ _, key, command, optionList... ] = tokens + keySequence = @parseKeySequence key if command? and @availableCommands[command] - keySequence = @parseKeySequence key key = keySequence.join "" - BgUtils.log "Mapping #{key} to #{command}" + BgUtils.log "mapping [\"#{keySequence.join '", "'}\"] to #{command}" @mapKeyToCommand { key, command, keySequence, options: @parseCommandOptions command, optionList } + else + BgUtils.log "skipping [\"#{keySequence.join '", "'}\"] for #{command} -- something is not right" when "unmap" if tokens.length == 2 -- cgit v1.2.3