diff src/luan/modules/http/LuanDomainHandler.java @ 1321:307e76ccd0d6

generalize separate logging
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 05 Feb 2019 22:36:55 -0700
parents 5763597ca5c0
children 55b8210b4ec0
line wrap: on
line diff
--- a/src/luan/modules/http/LuanDomainHandler.java	Mon Feb 04 20:18:51 2019 -0700
+++ b/src/luan/modules/http/LuanDomainHandler.java	Tue Feb 05 22:36:55 2019 -0700
@@ -8,6 +8,7 @@
 import luan.LuanTable;
 import luan.LuanCloner;
 import luan.LuanException;
+import luan.modules.logging.LuanLogger;
 
 
 public final class LuanDomainHandler implements Handler {
@@ -19,12 +20,13 @@
 			LuanCloner cloner = new LuanCloner(LuanCloner.Type.COMPLETE);
 			LuanState luan = (LuanState)cloner.clone(luanInit);
 			try {
+				LuanLogger.newLoggerRepository(luan);
 				LuanTable Http = (LuanTable)luan.require("luan:http/Http.luan");
 				Http.put( "domain", domain );
 			} catch(LuanException e) {
 				throw new RuntimeException(e);
 			}
-			return new LuanHandler(luan,null);
+			return new LuanHandler(luan);
 		}
 	};