Mercurial > hg > Database > Christie
changeset 179:d33253240018
fix config
author | akahori |
---|---|
date | Fri, 01 Feb 2019 19:30:58 +0900 |
parents | 7f4d8d228a9b |
children | fbe20887ca9f |
files | src/main/java/christie/daemon/Config.java |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/main/java/christie/daemon/Config.java Fri Feb 01 19:26:51 2019 +0900 +++ b/src/main/java/christie/daemon/Config.java Fri Feb 01 19:30:58 2019 +0900 @@ -12,8 +12,6 @@ public Level level = Level.FATAL; public String nis = "en1"; public boolean useKeepAlive = true; - Logger logger = LogManager.getLogger(Config.class); - public Config(String[] args) { for (int i = 0; i< args.length; i++) { @@ -31,19 +29,14 @@ String levelStr = args[++i]; if (levelStr.equals("fatal")) { level = Level.FATAL; - logger.info("Level FATAL"); } else if (levelStr.equals("error")) { level = Level.ERROR; - logger.info("Level ERROR"); } else if (levelStr.equals("warn")) { level = Level.WARN; - logger.info("Level WARN"); } else if (levelStr.equals("info")) { level = Level.INFO; - logger.info("Level INFO"); } else if (levelStr.equals("debug")) { level = Level.DEBUG; - logger.info("Level DEBUG"); } } }