log.error is probably preferable to log.exception here (log.exception will print a stacktrace).