I'd use `logError` for all of these messages (this is definitely an error case here if the UI can't be rendered). Also you can just pass the exception here in the first one - the log utilities can take a `Throwable`:

    logError("Exception in parsing Spark event log %s".format(path), e)