mirror of
https://github.com/swaywm/sway.git
synced 2026-05-03 06:46:26 -04:00
Use sway_log functions instead of wlr_log
This commit is contained in:
parent
1185a8cc1f
commit
c7c1cf31f7
79 changed files with 377 additions and 372 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#include <string.h>
|
||||
#include <strings.h>
|
||||
#include <json-c/json.h>
|
||||
#include <wlr/util/log.h>
|
||||
#include "log.h"
|
||||
#include "swaybar/config.h"
|
||||
#include "swaybar/ipc.h"
|
||||
#include "ipc-client.h"
|
||||
|
|
@ -327,7 +327,7 @@ bool handle_ipc_readable(struct swaybar *bar) {
|
|||
json_object *result = json_tokener_parse(resp->payload);
|
||||
if (!result) {
|
||||
free_ipc_response(resp);
|
||||
wlr_log(L_ERROR, "failed to parse payload as json");
|
||||
sway_log(L_ERROR, "failed to parse payload as json");
|
||||
return false;
|
||||
}
|
||||
json_object *json_change, *json_pango_markup;
|
||||
|
|
@ -340,7 +340,7 @@ bool handle_ipc_readable(struct swaybar *bar) {
|
|||
bar->config->mode = strdup(change);
|
||||
}
|
||||
} else {
|
||||
wlr_log(L_ERROR, "failed to parse response");
|
||||
sway_log(L_ERROR, "failed to parse response");
|
||||
json_object_put(result);
|
||||
free_ipc_response(resp);
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue