diff src/luan/modules/ThreadLuan.java @ 1454:219f2b937f2b

remove log4j
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Mar 2020 14:11:30 -0600
parents 42c07ecb0ddc
children 78d937870762
line wrap: on
line diff
--- a/src/luan/modules/ThreadLuan.java	Mon Mar 02 15:09:10 2020 -0700
+++ b/src/luan/modules/ThreadLuan.java	Sun Mar 08 14:11:30 2020 -0600
@@ -24,6 +24,7 @@
 import luan.LuanException;
 import luan.LuanCloner;
 import luan.LuanCloneable;
+import luan.modules.logging.LuanLogger;
 import goodjava.logging.Logger;
 import goodjava.logging.LoggerFactory;
 
@@ -37,10 +38,13 @@
 	private static Runnable runnable(final LuanFunction fn) {
 		return new Runnable() {
 			public synchronized void run() {
+				LuanLogger.startThreadLogging(fn.luan());
 				try {
 					fn.call();
 				} catch(LuanException e) {
 					e.printStackTrace();
+				} finally {
+					LuanLogger.endThreadLogging();
 				}
 			}
 		};