chiark / gitweb /
stest: Add debug logs
[secnet.git] / stest / common.tcl
index 7ed810f689faf24cf98988bf09fc74727b4f9fbe..a54bd4d7fe4c350e6735527da99a0546cd0f7b9f 100644 (file)
@@ -80,11 +80,13 @@ exec cat
        local-key rsa-private(\"$builddir/test-example/$site.key\");
 "
     append cfg $extra($site)
-    append cfg {
+    append cfg "
        log logfile {
-           filename "/dev/tty";
-           class "info","notice","warning","error","security","fatal";
+           prefix \"$site\";
+           class \"debug\",\"info\",\"notice\",\"warning\",\"error\",\"security\",\"fatal\";
        };
+    "
+    append cfg {
        system {
        };
        resolver adns {
@@ -99,7 +101,7 @@ exec cat
     close $f
     append cfg $sites
     append cfg {
-       sites map(site,vpn/test-example/all-sites);
+       sites map(site,all-sites);
     }
     return $cfg
 }