projects
/
onak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b4052a
)
Log total received key count.
author
Jonathan McDowell
<noodles@earth.li>
Fri, 13 Aug 2004 23:46:56 +0000
(23:46 +0000)
committer
Jonathan McDowell
<noodles@earth.li>
Fri, 13 Aug 2004 23:46:56 +0000
(23:46 +0000)
Modify add so that we log the total number of keys we get, as well as
the number of new keys.
add.c
patch
|
blob
|
history
diff --git
a/add.c
b/add.c
index a784fac358fb4d9565c84dfb274734b2c61d89df..2d38624d3f43dea1ac8e186b388d05ffe016e255 100644
(file)
--- a/
add.c
+++ b/
add.c
@@
-63,8
+63,10
@@
int main(int argc, char *argv[])
&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);