From d0bf87ffea52d8bc40598be8fee32365aaac8e0e Mon Sep 17 00:00:00 2001 From: hadeshyp Date: Sun, 4 Nov 2012 21:37:35 +0000 Subject: [PATCH] Disable logging --- cts/httpi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cts/httpi b/cts/httpi index 6f60477..6c52d69 100755 --- a/cts/httpi +++ b/cts/httpi @@ -80,7 +80,8 @@ $VERSION = "1.7 (Demonic/Linux)"; "bin" => "application/octet-stream"); -$logfile = "./htdocs/access.log"; +# comment in to enable logs +#$logfile = "./htdocs/access.log"; $path = "./htdocs"; $sockaddr = 'S n a4 x8'; @@ -163,7 +164,7 @@ sub htcontent { } sub log { - if (open(J, ">>$logfile")) { + if ($logfile && open(J, ">>$logfile")) { my $q = $address . (($variables) ? "?$variables" : ""); $contentlength += 0; $contentlength = 0 if ($method eq 'HEAD'); -- 2.43.0