Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
isdal committed Mar 15, 2012
1 parent 9b446ea commit a961b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -42,6 +42,7 @@ public String[] getKeys() {
@SuppressWarnings("unchecked")
@Override
public void execute(String command) {
logger.info("parsing command: '" + command + "'");
String[] toks = command.split("\\s+");
toks[0] = toks[0].toLowerCase();
if (toks[0].equals("port")) {
Expand Down
Expand Up @@ -117,7 +117,7 @@ protected void distribute(String command) {
ExperimentInterface experiment = (ExperimentInterface) Thread.currentThread()
.getContextClassLoader().loadClass(toks[1].trim()).getConstructor()
.newInstance();
logger.fine("Added experiments in " + toks[1]);
logger.info("Added experiments in " + toks[1]);
experiment.load();
experiments.add(experiment);
} catch (Exception e) {
Expand All @@ -131,7 +131,7 @@ protected void distribute(String command) {
for (ExperimentInterface ei : experiments) {
for (String offer : ei.getKeys()) {
if (offer.equals(key)) {
logger.finest(key + " was executed by " + ei.getClass().getName());
logger.info(key + " is executed by " + ei.getClass().getName());
ei.execute(command);
return;
}
Expand Down

0 comments on commit a961b8d

Please sign in to comment.