service: fix a leftover debug hack
[project/procd.git] / service / watch.c
index 1d7cf78..0d2d9e0 100644 (file)
@@ -100,11 +100,11 @@ watch_notify_cb(struct ubus_context *ctx, struct ubus_object *obj,
                struct ubus_request_data *req, const char *method,
                struct blob_attr *msg)
 {
-       if (1 || debug >= 3) {
+       if (debug >= 3) {
                char *str;
 
                str = blobmsg_format_json(msg, true);
-               LOG("Received ubus notify '%s': %s\n", method, str);
+               DEBUG(3, "Received ubus notify '%s': %s\n", method, str);
                free(str);
        }