From: hadeshyp Date: Sun, 4 Nov 2012 21:37:35 +0000 (+0000) Subject: Disable logging X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d0bf87ffea52d8bc40598be8fee32365aaac8e0e;p=daqtools.git Disable logging --- 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');