Modify add so that we log the total number of keys we get, as well as
the number of new keys.
&ctx,
&packets);
if (packets != NULL) {
&ctx,
&packets);
if (packets != NULL) {
- printf("Storing %d keys.\n",
- parse_keys(packets, &keys));
+ count = parse_keys(packets, &keys);
+ logthing(LOGTHING_NOTICE, "Received %d keys.",
+ count);
+ printf("Storing %d keys.\n", count);
end_html();
fclose(stdout);
fclose(stderr);
end_html();
fclose(stdout);
fclose(stderr);