diff --git a/.classpath b/.classpath index 619d61b..d8c5e3b 100644 --- a/.classpath +++ b/.classpath @@ -27,7 +27,7 @@ - + diff --git a/src/org/april/hebdobot/cli/HebdobotCLI.java b/src/org/april/hebdobot/cli/HebdobotCLI.java index 9327bd2..a8e452a 100644 --- a/src/org/april/hebdobot/cli/HebdobotCLI.java +++ b/src/org/april/hebdobot/cli/HebdobotCLI.java @@ -126,6 +126,21 @@ public class HebdobotCLI if (configFile.exists()) { + /* + // + File loggerConfigFile = new File(configFile, "log4j.properties"); + if (loggerConfigFile.exists()) + { + PropertyConfigurator.configure(loggerConfigFile.getAbsolutePath()); + logger.info("Dedicated log configuration done."); + logger.info("Configuration file was found in [{}].", loggerConfigFile.getAbsoluteFile()); + } + else + { + BasicConfigurator.configure(); + logger.info("Basic log configuration done."); + logger.info("Configuration file was not found in [{}].", loggerConfigFile.getAbsoluteFile()); + }*/ // Load configuration file. logger.info("Config file loading… ({}).", configFile.getAbsolutePath()); diff --git a/src/org/april/hebdobot/model/Hebdobot.java b/src/org/april/hebdobot/model/Hebdobot.java index c620721..ce14047 100644 --- a/src/org/april/hebdobot/model/Hebdobot.java +++ b/src/org/april/hebdobot/model/Hebdobot.java @@ -543,7 +543,7 @@ public class Hebdobot extends PircBot else { logger.info("Else caught."); - + // All the other. if (this.review != null) {