Commit c519fe5b462e5dfe85f7cf9b018e0660d3a178c7

Thomas de Grivel 2023-02-03T22:13:06

remove logging

diff --git a/share/shpkg/shpkg.subr b/share/shpkg/shpkg.subr
index 0ebc9dc..af19470 100644
--- a/share/shpkg/shpkg.subr
+++ b/share/shpkg/shpkg.subr
@@ -14,19 +14,9 @@ SHPKG_LIB_DIR="${SHPKG_DIR}/lib"
 SHPKG_SHARE_DIR="${SHPKG_DIR}/share/shpkg"
 SHPKG_SRC_DIR="${SHPKG_DIR}/src"
 SHPKG_VAR_DB_DIR="${SHPKG_DIR}/var/db/shpkg"
-SHPKG_VAR_LOG_DIR="${SHPKG_DIR}/var/log/shpkg"
 
 SHPKG_PREFIX="${SHPKG_DIR}"
 
-# Logging
-SHPKG_LOG="${SHPKG_VAR_LOG_DIR}/shpkg.${SHPKG_DATE}.log"
-echo "Date: ${SHPKG_DATE}" > "${SHPKG_LOG}"
-echo "Command: $0" "$@" >> "${SHPKG_LOG}"
-
-shpkg_log () {
-    tee -a "${SHPKG_LOG}"
-}
-
 # Console output
 verbose__puts () {
     {
@@ -65,9 +55,6 @@ err () {
     verbose 1 exit "$R"
 }
 
-# Startup
-# verbose -n 2 "logging to ${SHPKG_LOG}"
-
 # C compiler
 if [ "x${CC}" = "x" ]; then
     if which cc >/dev/null; then