X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Fwatch.c;h=0d2d9e0ba9f8c49727f37f825f276a1e0e6801eb;hp=1d7cf786175dfa33b15ce2e7712c23276d82e240;hb=8d8e22733caa9b254048c6d2b2ab15dc6b1af3c0;hpb=0467aebb79f64d1c9d05a84367fda7c02c4ea6b8 diff --git a/service/watch.c b/service/watch.c index 1d7cf78..0d2d9e0 100644 --- a/service/watch.c +++ b/service/watch.c @@ -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); }