- refs #38
  - print stacktrace if the logging level is debug