about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 3fff805..3cfe24f 100644
--- a/daemon.c
+++ b/daemon.c
@@ -148,6 +148,7 @@ static void parseControl(char *command) {
 	}
 
 	while (command) {
+		bool found = false;
 		char *pattern = strsep(&command, WS);
 		for (size_t i = 0; i < services.len; ++i) {
 			struct Service *service = &services.ptr[i];
@@ -157,7 +158,9 @@ static void parseControl(char *command) {
 			} else {
 				fn(service);
 			}
+			found = true;
 		}
+		if (!found) syslog(LOG_NOTICE, "no services matching %s", pattern);
 	}
 }
 
p1&id=e4f6fad70dc25c80f3c11ee52d83ea37b20620e9&follow=1'>Fix rest parsingJune McEnroe 2019-10-23Add dynamic poll listJune McEnroe 2019-10-23Don't assume commands have targets and handle ERRORJune McEnroe 2019-10-23Clean up state somewhatJune McEnroe 2019-10-23Actually send the buffer...June McEnroe 2019-10-23Add stateJune McEnroe