*
  * Copyright 2002 Project Purple
  *
- * $Id: add.c,v 1.12 2004/03/23 12:33:46 noodles Exp $
+ * $Id: add.c,v 1.13 2004/05/26 18:53:14 noodles Exp $
  */
 
 #include <errno.h>
 
 int main(int argc, char *argv[])
 {
-       struct openpgp_packet_list *packets = NULL;
-       struct openpgp_publickey *keys = NULL;
-       char **params = NULL;
-       struct buffer_ctx ctx;
-       int i;
+       struct openpgp_packet_list  *packets = NULL;
+       struct openpgp_publickey    *keys = NULL;
+       char                       **params = NULL;
+       struct buffer_ctx            ctx;
+       int                          count = 0;
+       int                          i;
 
        memset(&ctx, 0, sizeof(ctx));
 
                if (packets != NULL) {
                        parse_keys(packets, &keys);
                        initdb(false);
-                       printf("Got %d new keys.\n",
-                                       update_keys(&keys));
+                       count = update_keys(&keys);
+                       printf("Got %d new keys.\n", count);
+                       logthing(LOGTHING_NOTICE, "Got %d new keys.",
+                               count);
                        if (keys != NULL) {
                                sendkeysync(keys);
                                free_publickey(keys);
 
  *
  * Copyright 2001-2002 Project Purple.
  *
- * $Id: gpgwww.c,v 1.13 2004/03/23 12:33:46 noodles Exp $
+ * $Id: gpgwww.c,v 1.14 2004/05/26 18:53:14 noodles Exp $
  */
 
 #include <inttypes.h>
        initlogthing("gpgwww", config.logfile);
        initdb(true);
        inithash();
+       logthing(LOGTHING_NOTICE, "Looking for path from 0x%llX to 0x%llX.",
+                       from,
+                       to);
        dofindpath(from, to, true, 3);
        destroyhash();
        cleanupdb();
 
  *
  * Copyright 2002 Project Purple
  *
- * $Id: lookup.c,v 1.13 2004/03/23 12:33:47 noodles Exp $
+ * $Id: lookup.c,v 1.14 2004/05/26 18:53:14 noodles Exp $
  */
 
 #include <inttypes.h>
                initdb(true);
                switch (op) {
                case OP_GET:
+                       logthing(LOGTHING_NOTICE, "Getting keyid %llX",
+                                       keyid);
                        if (fetch_key(keyid, &publickey, false)) {
                                puts("<pre>");
                                flatten_publickey(publickey,