]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: use ELOG to actually get the error message into the logfile shown by i3-nagbar
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 4 Aug 2011 19:43:55 +0000 (21:43 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 4 Aug 2011 19:43:55 +0000 (21:43 +0200)
src/cfgparse.y

index b4ec94d27fe4e8fcb04b03f09aa90dedba545081..8426de0b3dd7b9b7633e9cde6c31eb43d7251698 100644 (file)
@@ -346,11 +346,13 @@ static void check_for_duplicate_bindings(struct context *context) {
                 bind->mods != current->mods)
                 continue;
             context->has_errors = true;
-            fprintf(stderr, "Duplicated keybinding in config file:  mod%d with key %s", current->mods, current->symbol);
-            /* if keycode is 0, this is a keysym binding */
-            if (current->keycode != 0)
-                fprintf(stderr, " and keycode %d", current->keycode);
-            fprintf(stderr, "\n");
+            if (current->keycode != 0) {
+                ELOG("Duplicate keybinding in config file:\n  modmask %d with keycode %d, command \"%s\"\n",
+                     current->mods, current->keycode, current->command);
+            } else {
+                ELOG("Duplicate keybinding in config file:\n  modmask %d with keysym %s, command \"%s\"\n",
+                     current->mods, current->symbol, current->command);
+            }
         }
     }
 }