Add event to interrupt the server_loop.
[apps/pfixtools.git] / postlicyd / main-postlicyd.c
index 751ff5a..57e1e25 100644 (file)
@@ -104,7 +104,7 @@ static bool policy_process(server_t *pcy, const config_t *config)
             policy_answer(pcy, "%s", hook->value);
             return true;
         } else {
-            notice("request client=%s, from=<%s>, to=<%s>: "
+            debug("request client=%s, from=<%s>, to=<%s>: "
                    "awswer %s from filter %s: next filter %s",
                    query->client_name,
                    query->sender == NULL ? "undefined" : query->sender,
@@ -240,6 +240,6 @@ int main(int argc, char *argv[])
         return EXIT_FAILURE;
     } else {
         return server_loop(query_starter, (delete_client_t)query_delete,
-                           policy_run, config_refresh, config);
+                           policy_run, NULL, config_refresh, config);
     }
 }