summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-09-15 22:56:04 +0200
committertv <tv@krebsco.de>2020-09-15 22:56:04 +0200
commitf802b4637d4ad6f1fd0e55807fd75de348d8d51f (patch)
tree78f5ba4a061260c12e193bf3dd75a0836eddac6b
parentb455a8745705a07e0ae11f86b416322f1b3c917f (diff)
cat only when verbose harder!v1.2.81.2.8
-rwxr-xr-xhtgen4
1 files changed, 3 insertions, 1 deletions
diff --git a/htgen b/htgen
index a1f459f..b5519dd 100755
--- a/htgen
+++ b/htgen
@@ -53,10 +53,12 @@ EOF
## date. {{{
date=$(date '+%Y-%m-%d %H:%M:%S')
-cat 1>&2 <<EOF
+if test "$HTGEN_VERBOSE" = true; then
+ cat 1>&2 <<EOF
# ${TCPREMOTEHOST-}[$TCPREMOTEIP]:$TCPREMOTEPORT connected at $date over $PROTO
EOF
+fi
## }}}
## Parse Request-Line. {{{
read Request_Line