From cb5b44244d75f77864b18d97921190b5061b6243 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Mon, 7 Nov 2022 12:21:43 -0700 Subject: [PATCH] Fixed log error messages --- back/lib/admin/peer/del | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/lib/admin/peer/del b/back/lib/admin/peer/del index db1b36d..be5645e 100755 --- a/back/lib/admin/peer/del +++ b/back/lib/admin/peer/del @@ -55,13 +55,13 @@ fi # Filter out this user's user_peer="$(grep "${pubkey}" <<<"${wg_output}" 2>/dev/null)" if [ "${user_peer}" == "" ]; then - printf "ERROR! %s accessed the dashboard but isn't on the network!\n" "${ip}" >>"${LOGFILE}" + printf "ERROR! Could not find user for pubkey %s!\n" "${pubkey}" >>"${LOGFILE}" exit 8 fi # Get peer domains if ! peer="$("${LIB_DIR}/ips_to_peers" tsv <<<"${user_peer}" | grep "${pubkey}")"; then - printf 'ERROR! Peer %s not found!\n' "${pubkey}" >>"${LOGFILE}" & + printf 'ERROR! Failed to lookup domain for pubkey %s!\n' "${pubkey}" >>"${LOGFILE}" & printf 'Peer not found\n' | "${LIB_DIR}/http_res" 404 exit 6 fi