- parse_keys(packets, &keys);
- initdb();
- printf("Got %d new keys.\n",
- update_keys(&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);
+ catchsignals();
+ initdb(false);
+
+ count = cleankeys(keys);
+ logthing(LOGTHING_INFO, "%d keys cleaned.",
+ count);
+
+ count = update_keys(&keys, true);
+ logthing(LOGTHING_NOTICE, "Got %d new keys.",
+ count);
+