Skip to content

Commit

Permalink
Log when things go wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
lincolnthree committed Apr 3, 2013
1 parent 6e4a263 commit fbc8f9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aesh/impl/src/main/java/org/jboss/forge/aesh/ForgeShell.java
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public int readConsoleOutput(ConsoleOutput output) throws IOException
}
catch (Exception e)
{
e.printStackTrace();
logger.log(Level.SEVERE, "Faile to verify commands.", e);
}
for (ShellCommand command : commands)
{
Expand Down Expand Up @@ -262,8 +262,7 @@ public int readConsoleOutput(ConsoleOutput output) throws IOException
}
catch (IllegalArgumentException iae)
{
// System.out.println("Command: " + command + ", did not match: " + output.getBuffer());
// ignored for now
logger.log(Level.INFO, "Command: " + command + ", did not match: " + output.getBuffer());
}
}
// if we didnt find any commands matching
Expand Down

0 comments on commit fbc8f9e

Please sign in to comment.