mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
always use log4j
removed all references to mage.util.Logging, java.util.logging transient static doesn't mean anything, since static fields are never included in serialization
This commit is contained in:
parent
28a087812a
commit
bfb428b13a
45 changed files with 71 additions and 178 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package mage.utils.properties;
|
||||
|
||||
import com.j256.ormlite.logger.Logger;
|
||||
import com.j256.ormlite.logger.LoggerFactory;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
|
@ -12,7 +11,7 @@ import java.util.Properties;
|
|||
*/
|
||||
public class PropertiesUtil {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(PropertiesUtil.class);
|
||||
private static final Logger logger = Logger.getLogger(PropertiesUtil.class);
|
||||
|
||||
private static final String LOG_JDBC_URL = "jdbc:h2:file:./db/mage.h2;AUTO_SERVER=TRUE";
|
||||
private static final String FEEDBACK_JDBC_URL = "jdbc:h2:file:./db/feedback.h2;AUTO_SERVER=TRUE";
|
||||
|
|
@ -25,7 +24,7 @@ public class PropertiesUtil {
|
|||
try {
|
||||
properties.load(in);
|
||||
} catch (IOException e) {
|
||||
logger.error(e, "Couldn't load properties");
|
||||
logger.error("Couldn't load properties", e);
|
||||
}
|
||||
} else {
|
||||
logger.warn("No xmage.properties were found on classpath");
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public class GameView implements Serializable {
|
|||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final transient Logger logger = Logger.getLogger(GameView.class);
|
||||
private static final Logger logger = Logger.getLogger(GameView.class);
|
||||
|
||||
private final int priorityTime;
|
||||
private final List<PlayerView> players = new ArrayList<>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue