cleaned up the logging to get rid of the print stack traces which are
distracting in junit.