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

remove log4j
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Mar 2020 14:11:30 -0600
parents 928be2a4d565
children 3bd4d7963456
line wrap: on
line diff
--- a/src/luan/modules/lucene/PostgresBackup.java	Mon Mar 02 15:09:10 2020 -0700
+++ b/src/luan/modules/lucene/PostgresBackup.java	Sun Mar 08 14:11:30 2020 -0600
@@ -24,9 +24,7 @@
 
 
 final class PostgresBackup {
-	private static final Logger sysLogger = LoggerFactory.getLogger(PostgresBackup.class);
-
-	private final Logger luanLogger;
+	private static final Logger logger = LoggerFactory.getLogger(PostgresBackup.class);
 
 	final boolean wasCreated;
 	private final String url;
@@ -42,7 +40,6 @@
 		throws ClassNotFoundException, SQLException, LuanException
 	{
 		spec = new LuanTable(spec);
-		this.luanLogger = luan.getLogger(PostgresBackup.class);
 /*
 		Class.forName("org.postgresql.Driver");
 		url = "jdbc:postgresql://localhost:5432/luan";
@@ -120,7 +117,7 @@
 		updateStmt.setLong(2,id);
 		int n = updateStmt.executeUpdate();
 		if( n==0 ) {
-			luanLogger.error("update not found for id="+id+", trying add");
+			logger.error("update not found for id="+id+", trying add");
 			add(doc);
 		} else if( n!=1 )
 			throw new RuntimeException();