diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-14 16:26:59 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2015-12-14 17:17:06 +0100 |
commit | 2cedf88273dcec1f79ecb20582c876584db10d36 (patch) | |
tree | 79903bfeaea89dc5c70f02d72b52f8d135504c3a | |
parent | Add initial support for custom bar-id (diff) | |
download | sway-2cedf88273dcec1f79ecb20582c876584db10d36.tar.gz sway-2cedf88273dcec1f79ecb20582c876584db10d36.tar.zst sway-2cedf88273dcec1f79ecb20582c876584db10d36.zip |
Add bar id to debug logs
-rw-r--r-- | sway/commands.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/commands.c b/sway/commands.c index ea138dfc..ba16260f 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1546,7 +1546,7 @@ static struct cmd_results *bar_cmd_position(int argc, char **argv) { | |||
1546 | return error; | 1546 | return error; |
1547 | } | 1547 | } |
1548 | 1548 | ||
1549 | sway_log(L_DEBUG, "Setting bar position '%s'", argv[0]); | 1549 | sway_log(L_DEBUG, "Setting bar position '%s' for bar: %s", argv[0], config->current_bar->id); |
1550 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 1550 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
1551 | } | 1551 | } |
1552 | 1552 | ||
@@ -1562,10 +1562,10 @@ static struct cmd_results *bar_cmd_strip_workspace_numbers(int argc, char **argv | |||
1562 | 1562 | ||
1563 | if (strcasecmp("yes", argv[0]) == 0) { | 1563 | if (strcasecmp("yes", argv[0]) == 0) { |
1564 | config->current_bar->strip_workspace_numbers = true; | 1564 | config->current_bar->strip_workspace_numbers = true; |
1565 | sway_log(L_DEBUG, "Stripping workspace numbers on bar"); | 1565 | sway_log(L_DEBUG, "Stripping workspace numbers on bar: %s", config->current_bar->id); |
1566 | } else if (strcasecmp("no", argv[0]) == 0) { | 1566 | } else if (strcasecmp("no", argv[0]) == 0) { |
1567 | config->current_bar->strip_workspace_numbers = false; | 1567 | config->current_bar->strip_workspace_numbers = false; |
1568 | sway_log(L_DEBUG, "Enabling workspace numbers on bar"); | 1568 | sway_log(L_DEBUG, "Enabling workspace numbers on bar: %s", config->current_bar->id); |
1569 | } else { | 1569 | } else { |
1570 | error = cmd_results_new(CMD_INVALID, "strip_workspace_numbers", "Invalid value %s", argv[0]); | 1570 | error = cmd_results_new(CMD_INVALID, "strip_workspace_numbers", "Invalid value %s", argv[0]); |
1571 | return error; | 1571 | return error; |
@@ -1599,7 +1599,7 @@ static struct cmd_results *bar_cmd_tray_padding(int argc, char **argv) { | |||
1599 | "Unknown unit %s", argv[1]); | 1599 | "Unknown unit %s", argv[1]); |
1600 | } | 1600 | } |
1601 | config->current_bar->tray_padding = padding; | 1601 | config->current_bar->tray_padding = padding; |
1602 | sway_log(L_DEBUG, "Enabling tray padding of %d px", padding); | 1602 | sway_log(L_DEBUG, "Enabling tray padding of %d px on bar: %s", padding, config->current_bar->id); |
1603 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 1603 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
1604 | } | 1604 | } |
1605 | 1605 | ||
@@ -1615,10 +1615,10 @@ static struct cmd_results *bar_cmd_workspace_buttons(int argc, char **argv) { | |||
1615 | 1615 | ||
1616 | if (strcasecmp("yes", argv[0]) == 0) { | 1616 | if (strcasecmp("yes", argv[0]) == 0) { |
1617 | config->current_bar->workspace_buttons = true; | 1617 | config->current_bar->workspace_buttons = true; |
1618 | sway_log(L_DEBUG, "Enabling workspace buttons on bar"); | 1618 | sway_log(L_DEBUG, "Enabling workspace buttons on bar: %s", config->current_bar->id); |
1619 | } else if (strcasecmp("no", argv[0]) == 0) { | 1619 | } else if (strcasecmp("no", argv[0]) == 0) { |
1620 | config->current_bar->workspace_buttons = false; | 1620 | config->current_bar->workspace_buttons = false; |
1621 | sway_log(L_DEBUG, "Disabling workspace buttons on bar"); | 1621 | sway_log(L_DEBUG, "Disabling workspace buttons on bar: %s", config->current_bar->id); |
1622 | } else { | 1622 | } else { |
1623 | error = cmd_results_new(CMD_INVALID, "workspace_buttons", "Invalid value %s", argv[0]); | 1623 | error = cmd_results_new(CMD_INVALID, "workspace_buttons", "Invalid value %s", argv[0]); |
1624 | return error; | 1624 | return error; |