Use sway_log functions instead of wlr_log

This commit is contained in:
Markus Ongyerth 2018-05-24 21:45:22 +02:00
parent 1185a8cc1f
commit c7c1cf31f7
79 changed files with 377 additions and 372 deletions

View file

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