summaryrefslogtreecommitdiff
path: root/src/monkeysphere-host
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2010-10-02 15:06:16 -0400
committerMicah Anderson <micah@riseup.net>2010-10-02 16:12:52 -0400
commite7df0bd6e46482b268017de102cbeea30665bd64 (patch)
treef2f597511aa2bb6b1830efb03b9b171155e1a81f /src/monkeysphere-host
parentba9ec460b27dc24e99d9704aabd0cd35e9de08b6 (diff)
add debugging to monkeysphere-host publish-key, closes: #2289
Diffstat (limited to 'src/monkeysphere-host')
-rwxr-xr-xsrc/monkeysphere-host7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/monkeysphere-host b/src/monkeysphere-host
index 33a67cc..17f918c 100755
--- a/src/monkeysphere-host
+++ b/src/monkeysphere-host
@@ -257,16 +257,22 @@ multi_key() {
check_no_keys
+ log debug "listing primary fingerprints from $HOST_KEY_FILE"
local fprs=($(list_primary_fingerprints <"$HOST_KEY_FILE"))
+ log debug "obtained the following fingerprints: $fprs"
if [[ -z "$1" || "$1" == '--all' ]] ; then
+ log debug "publishing all keys"
keys="${fprs[@]}"
fi
+ log debug "using keys: $keys"
+
for key in $keys ; do
if (( i++ > 0 )) ; then
printf "\n"
fi
+ log debug "invoking $cmd $key"
"$cmd" "$key"
done
}
@@ -338,6 +344,7 @@ show_key() {
# defaults
LOG_LEVEL=${MONKEYSPHERE_LOG_LEVEL:=$LOG_LEVEL}
KEYSERVER=${MONKEYSPHERE_KEYSERVER:=$KEYSERVER}
+log debug "using keyserver: $KEYSERVER"
CHECK_KEYSERVER=${MONKEYSPHERE_CHECK_KEYSERVER:=$CHECK_KEYSERVER}
MONKEYSPHERE_USER=${MONKEYSPHERE_MONKEYSPHERE_USER:=$MONKEYSPHERE_USER}
MONKEYSPHERE_GROUP=$(get_primary_group "$MONKEYSPHERE_USER")