diff src/luan/modules/http/test.luan @ 1218:a50803fde972

http/tools cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 20 Mar 2018 16:24:59 -0600
parents 1a68fc55a80c
children 7fc83fd2a39a
line wrap: on
line diff
--- a/src/luan/modules/http/test.luan	Tue Mar 20 15:43:16 2018 -0600
+++ b/src/luan/modules/http/test.luan	Tue Mar 20 16:24:59 2018 -0600
@@ -1,12 +1,16 @@
 local Luan = require "luan:Luan.luan"
 local Io = require "luan:Io.luan"
 local Server = require "luan:http/Server.luan"
+local Logging = require "luan:logging/Logging.luan"
+
 
 if #{...} ~= 2 then
-	Io.stderr.write "usage: luan luan:http/serve dir-URI test-URI\n"
+	Io.stderr.write "usage: luan luan:http/serve dir test-URI\n"
 	return
 end
 
 local dir, test = ...
-Server.init(dir)
+
+Logging.init()
+Server.init_dir(dir)
 Luan.do_file(test)